From 201c21e2ad6be25a4b843d1434eabb432ce72884 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 2 Jan 2011 00:34:26 +0200 Subject: add a way for GPU plugin to get layer config --- plugins/gpu-gles/gpuPlugin.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'plugins/gpu-gles') diff --git a/plugins/gpu-gles/gpuPlugin.c b/plugins/gpu-gles/gpuPlugin.c index d6e6fbb..897c942 100644 --- a/plugins/gpu-gles/gpuPlugin.c +++ b/plugins/gpu-gles/gpuPlugin.c @@ -154,6 +154,8 @@ int iFakePrimBusy = 0; int iRumbleVal = 0; int iRumbleTime = 0; +static void (*rearmed_get_layer_pos)(int *x, int *y, int *w, int *h); + //////////////////////////////////////////////////////////////////////// // stuff to make this a true PDK module //////////////////////////////////////////////////////////////////////// @@ -559,7 +561,7 @@ long CALLBACK GPUopen(int hwndGPU) iResX=240;iResY=320; #endif #ifdef MAEMO_CHANGES - iResX=640;iResY=480; + iResX=800;iResY=480; #endif iColDepth=8; bChangeRes=FALSE; @@ -1119,6 +1121,7 @@ float xs,ys,s;RECT r; if(!PSXDisplay.DisplayModeNew.x) return; if(!PSXDisplay.DisplayModeNew.y) return; +#if 0 xs=(float)iResX/(float)PSXDisplay.DisplayModeNew.x; ys=(float)iResY/(float)PSXDisplay.DisplayModeNew.y; @@ -1170,7 +1173,11 @@ if(r.bottom