Fixed taking screenshots with DirectDraw;
Reenabled minimizing the window - it no longer crashes the emulator.
This commit is contained in:
@@ -353,6 +353,7 @@ ddraw_blit(int x, int y, int y1, int y2, int w, int h)
|
||||
void
|
||||
ddraw_take_screenshot(wchar_t *fn)
|
||||
{
|
||||
#if 0
|
||||
xs = xsize;
|
||||
ys = ys2 = ysize;
|
||||
|
||||
@@ -369,6 +370,15 @@ ddraw_take_screenshot(wchar_t *fn)
|
||||
else
|
||||
ys += overscan_y;
|
||||
}
|
||||
#endif
|
||||
|
||||
xs = get_actual_size_x();
|
||||
ys = ys2 = get_actual_size_y();
|
||||
|
||||
if (ysize <= 250) {
|
||||
ys >>= 1;
|
||||
ys2 >>= 1;
|
||||
}
|
||||
|
||||
CopySurface(lpdds_back2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user