summaryrefslogtreecommitdiff
path: root/examples/example_rwops.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example_rwops.c')
-rw-r--r--examples/example_rwops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/example_rwops.c b/examples/example_rwops.c
index 418f7a7..84370f1 100644
--- a/examples/example_rwops.c
+++ b/examples/example_rwops.c
@@ -133,6 +133,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);
@@ -188,10 +192,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);