aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2012-08-01 02:16:57 +0300
committernotaz2012-08-01 02:54:48 +0300
commit6983a9ae5accfbb9be955e4b9320fddb7572e00f (patch)
tree6ac4ca84368f1f87b788564c6d88be4720214bc2 /frontend
parentfbb4bfffdca204ecb0f228ad13e0b16fd5e5f77e (diff)
downloadpcsx_rearmed-6983a9ae5accfbb9be955e4b9320fddb7572e00f.tar.gz
pcsx_rearmed-6983a9ae5accfbb9be955e4b9320fddb7572e00f.tar.bz2
pcsx_rearmed-6983a9ae5accfbb9be955e4b9320fddb7572e00f.zip
frontend/pollux: care about bpp when calculating offset
Diffstat (limited to 'frontend')
-rw-r--r--frontend/plat_pollux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/plat_pollux.c b/frontend/plat_pollux.c
index 57031d8..589049c 100644
--- a/frontend/plat_pollux.c
+++ b/frontend/plat_pollux.c
@@ -440,7 +440,7 @@ void *plat_gvideo_set_mode(int *w_, int *h_, int *bpp_)
}
fb_offset_y = 240/2 - h / 2;
- psx_offset_x = poff_w;
+ psx_offset_x = poff_w * psx_bpp/8 / 2;
psx_offset_y = poff_h;
psx_src_width = w;
psx_src_height = h;