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:
ee9afdb
)
gpulib: limit height
author
notaz
<notasas@gmail.com>
Fri, 4 Jan 2013 21:50:05 +0000
(23:50 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 5 Jan 2013 02:54:38 +0000
(
04:54
+0200)
plugins/gpulib/gpu.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/gpulib/gpu.c
b/plugins/gpulib/gpu.c
index
53fe0bc
..
337e27a
100644
(file)
--- a/
plugins/gpulib/gpu.c
+++ b/
plugins/gpulib/gpu.c
@@
-68,10
+68,11
@@
static noinline void update_width(void)
static noinline void update_height(void)
{
+ // TODO: emulate this properly..
int sh = gpu.screen.y2 - gpu.screen.y1;
if (gpu.status.dheight)
sh *= 2;
- if (sh <= 0)
+ if (sh <= 0
|| sh > gpu.screen.vres
)
sh = gpu.screen.vres;
gpu.screen.h = sh;