summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/example_complex.c8
-rw-r--r--examples/example_custom.c8
-rw-r--r--examples/example_rwops.c8
-rw-r--r--examples/example_simple.c8
4 files changed, 16 insertions, 16 deletions
diff --git a/examples/example_complex.c b/examples/example_complex.c
index 5bd0b19..b8dc6ee 100644
--- a/examples/example_complex.c
+++ b/examples/example_complex.c
@@ -224,6 +224,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);
@@ -340,10 +344,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);
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);
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);
diff --git a/examples/example_simple.c b/examples/example_simple.c
index a7dbbfd..4c581c0 100644
--- a/examples/example_simple.c
+++ b/examples/example_simple.c
@@ -126,6 +126,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);
@@ -174,10 +178,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);