clang d'enculé
This commit is contained in:
1 parent
e3ad24e630
commit
068a209451
1 file changed
+2
-3
@@ -97,7 +97,7 @@ void render_blended_text(SDL_Renderer* ren, Env* env) {
|
||||
// color of 0 in black wall with error
|
||||
SDL_Color color_r = {255, 50, 50, 255}; /* blue color in RGBA */
|
||||
|
||||
SDL_Color color_b = {0,0,0,255};
|
||||
SDL_Color color_b = {0, 0, 0, 255};
|
||||
|
||||
/*rendu restart*/
|
||||
SDL_Surface* surf = TTF_RenderText_Blended(font, "Restart", color_b);
|
||||
@@ -135,7 +135,6 @@ void render_blended_text(SDL_Renderer* ren, Env* env) {
|
||||
env->text_solve[1] = SDL_CreateTextureFromSurface(ren, surf);
|
||||
SDL_FreeSurface(surf);
|
||||
|
||||
|
||||
/* init zero texture double tab*/
|
||||
// if the case has not error
|
||||
surf = TTF_RenderText_Blended(font, "0", color_w);
|
||||
@@ -264,7 +263,7 @@ Env* init(SDL_Renderer* ren, int argc, char* argv[]) {
|
||||
env->text_solve = malloc(sizeof(SDL_Texture*) * 2);
|
||||
if (env->text_solve == NULL)
|
||||
ERROR("%s", "NOT ENOUGTH MEMORY\n");
|
||||
|
||||
|
||||
render_blended_text(ren, env);
|
||||
|
||||
env->rec_redo = malloc(sizeof(SDL_Rect));
|
||||
|
||||
Reference in new issue
Block a user