} else {
donormal:
+ bool d3dcaptured = false;
width = WIN32GFX_GetWidth ();
height = WIN32GFX_GetHeight ();
}
}
s->UnlockRect();
+ d3dcaptured = true;
}
}
- } else {
+ }
+ if (!d3dcaptured) {
surface_dc = gethdc ();
if (surface_dc == NULL)
goto oops;
else
#endif
failed = savebmp (fp);
- fclose (fp);
+ fclose(fp);
fp = NULL;
- goto oops;
+ if (failed)
+ write_log(_T("Screenshot status %d ('%s')\n"), failed, spath);
+ if (failed)
+ _tunlink(spath);
}
+ goto oops;
}
fetch_path (_T("ScreenshotPath"), path, sizeof (path) / sizeof (TCHAR));
CreateDirectory (path, NULL);