summaryrefslogtreecommitdiff
path: root/examples/example_custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example_custom.c')
-rw-r--r--examples/example_custom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/example_custom.c b/examples/example_custom.c
index e365850..f99c94e 100644
--- a/examples/example_custom.c
+++ b/examples/example_custom.c
@@ -141,6 +141,10 @@ int main(int argc, char *argv[]) {
// Make sure subtitle texture is in correct blendmode
SDL_SetTextureBlendMode(subtitle_tex, SDL_BLENDMODE_BLEND);
+ // Clear screen with black
+ SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
+ SDL_RenderClear(renderer);
+
// Start playback
Kit_PlayerPlay(player);
@@ -195,10 +199,6 @@ int main(int argc, char *argv[]) {
}
}
- // Clear screen with black
- SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
- SDL_RenderClear(renderer);
-
// Refresh videotexture and render it
Kit_GetPlayerVideoData(player, video_tex);
SDL_RenderCopy(renderer, video_tex, NULL, NULL);