Sfoglia il codice sorgente

examples/renderer/03-lines: use a gray background.

Ryan C. Gordon 11 mesi fa
parent
commit
2e3e5abd7d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/renderer/03-lines/renderer-lines.c

+ 1 - 1
examples/renderer/03-lines/renderer-lines.c

@@ -56,7 +56,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
     };
 
     /* as you can see from this, rendering draws over whatever was drawn before it. */
-    SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);  /* black, full alpha */
+    SDL_SetRenderDrawColor(renderer, 100, 100, 100, 255);  /* black, full alpha */
     SDL_RenderClear(renderer);  /* start with a blank canvas. */
 
     /* You can draw lines, one at a time, like these brown ones... */