mirror of
https://github.com/yawut/SDL.git
synced 2026-08-17 22:36:37 -05:00
indent
This commit is contained in:
@@ -174,7 +174,8 @@ void
|
||||
drawBlank(int x, int y)
|
||||
{
|
||||
SDL_Rect rect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN };
|
||||
SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused);
|
||||
SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b,
|
||||
bg_color.unused);
|
||||
SDL_RenderFill(&rect);
|
||||
}
|
||||
|
||||
@@ -254,7 +255,8 @@ main(int argc, char *argv[])
|
||||
loadFont();
|
||||
|
||||
/* draw the background, we'll just paint over it */
|
||||
SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b, bg_color.unused);
|
||||
SDL_SetRenderDrawColor(bg_color.r, bg_color.g, bg_color.b,
|
||||
bg_color.unused);
|
||||
SDL_RenderFill(NULL);
|
||||
SDL_RenderPresent();
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ render(void)
|
||||
{
|
||||
int i;
|
||||
SDL_SetRenderDrawColor(50, 50, 50, 255);
|
||||
SDL_RenderFill(NULL); /* draw background (gray) */
|
||||
SDL_RenderFill(NULL); /* draw background (gray) */
|
||||
/* draw the drum buttons */
|
||||
for (i = 0; i < NUM_DRUMS; i++) {
|
||||
SDL_Color color =
|
||||
|
||||
Reference in New Issue
Block a user