X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfxvideo%2Fdraw.c;h=ad3f3a196ff0c4525a4144b29190b2e940ffdc31;hp=fe7f87a65acb5cdfb7bf0c5ba624b1c48ac5ae28;hb=0507e4f1e5c28ea0e5214b32ed1f6f571f7b8066;hpb=ef79bbde537d6b9c745a7d86cb9df1d04c35590d diff --git a/plugins/dfxvideo/draw.c b/plugins/dfxvideo/draw.c index fe7f87a6..ad3f3a19 100644 --- a/plugins/dfxvideo/draw.c +++ b/plugins/dfxvideo/draw.c @@ -17,17 +17,15 @@ #define _IN_DRAW -#include "externals.h" +#include +#include +#include + #include "gpu.h" -#include "draw.h" -#include "prim.h" -#include "menu.h" -#include "interp.h" -#include "swap.h" // misc globals -int iResX; -int iResY; +int iResX=640; +int iResY=480; long lLowerpart; BOOL bIsFirstFrame = TRUE; BOOL bCheckMask = FALSE; @@ -39,10 +37,19 @@ int iWinSize; int iMaintainAspect = 0; int iUseNoStretchBlt = 0; int iFastFwd = 0; -int iDebugMode = 0; +//int iDebugMode = 0; int iFVDisplay = 0; PSXPoint_t ptCursorPoint[8]; unsigned short usCursorActive = 0; +unsigned long ulKeybits; + +int iWindowMode=1; +int iColDepth=32; +char szDispBuf[64]; +char szMenuBuf[36]; +char szDebugText[512]; +void InitMenu(void) {} +void CloseMenu(void) {} //unsigned int LUT16to32[65536]; //unsigned int RGBtoYUV[65536]; @@ -63,6 +70,14 @@ int xv_vsync = 0; XShmSegmentInfo shminfo; int finalw,finalh; +typedef struct { +#define MWM_HINTS_DECORATIONS 2 + long flags; + long functions; + long decorations; + long input_mode; +} MotifWmHints; + extern XvImage *XvShmCreateImage(Display*, XvPortID, int, char*, int, int, XShmSegmentInfo*); #include @@ -1529,7 +1544,7 @@ void RGB2YUV(uint32_t *s, int width, int height, uint32_t *d) } } -extern time_t tStart; +time_t tStart; //Note: dest x,y,w,h are both input and output variables inline void MaintainAspect(unsigned int *dx,unsigned int *dy,unsigned int *dw,unsigned int *dh) @@ -1684,6 +1699,7 @@ int Xinitialize() p2XSaIFunc=NULL; +#if 0 if(iUseNoStretchBlt==1) { p2XSaIFunc=Std2xSaI_ex8; @@ -1715,6 +1731,7 @@ int Xinitialize() { p2XSaIFunc=hq3x_32; } +#endif bUsingTWin=FALSE; @@ -1727,7 +1744,7 @@ int Xinitialize() iShowFPS=0; ulKeybits|=KEY_SHOWFPS; szDispBuf[0]=0; - BuildDispMenu(0); + //BuildDispMenu(0); } return 0; @@ -1847,6 +1864,7 @@ void ShowTextGpuPic(void) { } +#if 0 static void hq2x_32_def(uint32_t * dst0, uint32_t * dst1, const uint32_t * src0, const uint32_t * src1, const uint32_t * src2, unsigned count) { static unsigned char cache_vert_mask[640]; @@ -2045,3 +2063,4 @@ void hq3x_32( unsigned char * srcPtr, DWORD srcPitch, unsigned char * dstPtr, i hq3x_32_def(dst0, dst1, dst2, src0, src1, src1, width); } +#endif