Awesome, that fixed it much better. Thanks a ton, Zuka!
Now my problem is with the saved file.
Here's my screenshot code: (Saves a screenshot)
char* filename = new char[256];
for (int i=0; i<1000; i++) {
sprintf_s(filename,256,"Exstasis%d.jpg",i);
if (!dbFileExist(filename)) {
dbGetImage(1,0,0,SW,SH);
dbSaveImage(filename,1);
dbDeleteImage(1);
break;
}
}
delete filename;
The resolution (SW and SH) is 1280x1024. The image gets saved as a 2048x1024 image... which is understandable considering it's in a power of 2, but how do I make it save the image in the correct dimensions?
The one and only,