Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Replacement Screen Capture Code

Author
Message
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 20th Dec 2008 12:07 Edited at: 20th Dec 2008 12:29
Error message:
"Tried to read a surface which has no read permissions!"

For those of you that are having problems with the "Dark GDK Upgrade - November 2008" when you are using the "dbSetDisplayModeAntialias ()" function and doing a screen capture within your code with "dbGetImage()".

Here is a temporary option until the problem hopefully gets solved.

A straight copy of my "SnapShot.CPP" file.


One can use the "ScreenCaptureTest()" within the game loop for automatic key test and produce the picture, or use any of the other functions as you see fit.

Any problems, please let me know.

EDIT: UGHHH.... How does one stop all those extra Backslash characters from corrupting the code fragments ????????
EDIT2: It looks to have fixed itself .... hope nothing got corrupted

Login to post a reply

Server time is: 2024-11-25 09:20:35
Your offset time is: 2024-11-25 09:20:35