diff options
Diffstat (limited to 'plugins/peopsxgl/gpu.c')
| -rwxr-xr-x | plugins/peopsxgl/gpu.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index c19dd2b6..12c453b5 100755 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -35,6 +35,10 @@ static int iOldMode=0; #endif +#if defined(__linux__) +#include <sys/wait.h> +#endif + #define _IN_GPU #include "externals.h" @@ -1088,13 +1092,7 @@ long GPUopen(unsigned long * disp,char * CapText,char * CfgFile) GLinitialize(); // init opengl if(disp) - { -#if defined (_MACGL) - *disp = display; -#else - *disp=(unsigned long *)display; // return display ID to main emu -#endif - } + *disp = (unsigned long)display; // return display ID to main emu if(display) return 0; return -1; @@ -1317,7 +1315,6 @@ void SetScanLines(void) //PGXP_SetMatrix(0, PSXDisplay.DisplayMode.x, PSXDisplay.DisplayMode.y, 0, -1, 1); - if(bKeepRatio) glViewport(rRatioRect.left, iResY-(rRatioRect.top+rRatioRect.bottom), @@ -1895,7 +1892,6 @@ void updateDisplayIfChanged(void) // PGXP_SetMatrix(0, PSXDisplay.DisplayModeNew.x, PSXDisplay.DisplayModeNew.y, 0, -1, 1); - if(bKeepRatio) SetAspectRatio(); } |
