[wined3d] GetFrontBufferData

2006-10-18 Thread Karsten Elfenbein
This patch depends on the BltOverride change.
It allows the apps to grab the FrontBufferData. (for screen captures)

Todo:
- implement a windowed mode switch

Karsten


getfrontbufferblt.diff
Description: Binary data



[wined3d] GetFrontBufferData

2006-10-16 Thread Karsten Elfenbein
Hi,

this is the patch that allows EVE online to capture ingame screenshots.
(fixes the start coordinates for glReadPixels and turns the output
upside down again)
It works with the login screen (running as managed window) and in
fullscreen. (when desktop is 32bit)
Is there much more stuff needed or would cleaning up the code and
replacing the 4 with the size of a pixel do the trick for the tree?

Karsten


getfrontbufferdata.diff
Description: Binary data



Re: [wined3d] GetFrontBufferData

2006-10-16 Thread Stefan Dösinger
Am Montag 16 Oktober 2006 18:02 schrieb Karsten Elfenbein:
 Hi,

 this is the patch that allows EVE online to capture ingame screenshots.
 (fixes the start coordinates for glReadPixels and turns the output
 upside down again)
 It works with the login screen (running as managed window) and in
 fullscreen. (when desktop is 32bit)
 Is there much more stuff needed or would cleaning up the code and
 replacing the 4 with the size of a pixel do the trick for the tree?
Well, you could reimplement GetFrontBufferData with IWineD3DSurface_BltFast. 
This would save some code, but GetFrontBufferData in the form it is at the 
moment is well-optimized for what it is doing, so it might be better to leave 
it as it is.

Just dropping the note - Not sure what the best way is.


pgpN4BgzU5z14.pgp
Description: PGP signature