notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba0831
)
add triplebuffering support
author
kub
<derkub@gmail.com>
Sat, 10 Oct 2020 18:56:21 +0000
(20:56 +0200)
committer
kub
<derkub@gmail.com>
Sat, 10 Oct 2020 18:56:36 +0000
(20:56 +0200)
plat_sdl.c
patch
|
blob
|
blame
|
history
diff --git
a/plat_sdl.c
b/plat_sdl.c
index
9b78d05
..
2d38fcc
100644
(file)
--- a/
plat_sdl.c
+++ b/
plat_sdl.c
@@
-123,7
+123,11
@@
int plat_sdl_change_video_mode(int w, int h, int force)
if (plat_target.vout_method == 0) {
SDL_PumpEvents();
+#if defined(SDL_TRIPLEBUF) && defined(SDL_BUFFER_3X)
+ plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_HWSURFACE | SDL_TRIPLEBUF);
+#else
plat_sdl_screen = SDL_SetVideoMode(w, h, 16, SDL_HWSURFACE | SDL_DOUBLEBUF);
+#endif
if (plat_sdl_screen == NULL) {
fprintf(stderr, "SDL_SetVideoMode failed: %s\n", SDL_GetError());
return -1;