notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
452b85f
)
check for height changes too
author
notaz
<notasas@gmail.com>
Wed, 15 Dec 2010 10:48:30 +0000
(12:48 +0200)
committer
notaz
<notasas@gmail.com>
Thu, 16 Dec 2010 16:37:56 +0000
(18:37 +0200)
plugins/dfxvideo/draw_fb.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/dfxvideo/draw_fb.c
b/plugins/dfxvideo/draw_fb.c
index
af05dd2
..
5884f92
100644
(file)
--- a/
plugins/dfxvideo/draw_fb.c
+++ b/
plugins/dfxvideo/draw_fb.c
@@
-84,16
+84,17
@@
static void blit(void)
void DoBufferSwap(void)
{
void DoBufferSwap(void)
{
- static int fbw, fb24bpp;
+ static int fbw, fb
h, fb
24bpp;
if (PSXDisplay.DisplayMode.x == 0 || PSXDisplay.DisplayMode.y == 0)
return;
/* careful if rearranging this code, we try to set mode and flip
* to get the hardware apply both changes at the same time */
if (PSXDisplay.DisplayMode.x == 0 || PSXDisplay.DisplayMode.y == 0)
return;
/* careful if rearranging this code, we try to set mode and flip
* to get the hardware apply both changes at the same time */
- if (PSXDisplay.DisplayMode.x != fbw || PSXDisplay.
RGB24 != fb24bpp) {
- int fbh = PSXDisplay.DisplayMode.y;
+ if (PSXDisplay.DisplayMode.x != fbw || PSXDisplay.
DisplayMode.y != fbh
+ || PSXDisplay.RGB24 != fb24bpp) {
fbw = PSXDisplay.DisplayMode.x;
fbw = PSXDisplay.DisplayMode.x;
+ fbh = PSXDisplay.DisplayMode.y;
fb24bpp = PSXDisplay.RGB24;
pl_fbdev_set_mode(fbw, fbh, fb24bpp ? 24 : 16);
}
fb24bpp = PSXDisplay.RGB24;
pl_fbdev_set_mode(fbw, fbh, fb24bpp ? 24 : 16);
}