Does anyone know how to use GAPI to draw only the clipped region of the screen, i.e. the area which isn't covered by other windows like the SIP menu and the keyboard and other windows like that?
I just end up drawing over the top.
In DirectDraw there is something called a DirectDrawClipper which has HRGN object. This can be parsed to find out regions of the screen.
I've tried lots of promising looking functions like GetRandomRgn GetUpdateRgn BeginPaint GetClipRgn GetWindowRgn, etc and all seem to return the full area of the window no matter what is in front...
I'm desperate here, so any ideas would be welcome... I notice PocketSNES subtle avoids this by redrawing the screen in a Bitmap when the menu may appear, which doesn't look promising
I just end up drawing over the top.
In DirectDraw there is something called a DirectDrawClipper which has HRGN object. This can be parsed to find out regions of the screen.
I've tried lots of promising looking functions like GetRandomRgn GetUpdateRgn BeginPaint GetClipRgn GetWindowRgn, etc and all seem to return the full area of the window no matter what is in front...
I'm desperate here, so any ideas would be welcome... I notice PocketSNES subtle avoids this by redrawing the screen in a Bitmap when the menu may appear, which doesn't look promising