Fix save game preview (#33)
This commit is contained in:
parent
893dc0e090
commit
12cbfe262c
|
@ -626,9 +626,10 @@ int _QuickSnapShot()
|
||||||
}
|
}
|
||||||
|
|
||||||
// For preview take 640x380 area in the center of isometric window.
|
// For preview take 640x380 area in the center of isometric window.
|
||||||
unsigned char* isoWindowBuffer = windowGetBuffer(gIsoWindow)
|
Window* window = windowGetWindow(gIsoWindow);
|
||||||
+ (screenGetWidth() - ORIGINAL_ISO_WINDOW_WIDTH) / 2 * (screenGetHeight() - ORIGINAL_ISO_WINDOW_HEIGHT) / 2
|
unsigned char* isoWindowBuffer = window->buffer
|
||||||
+ (screenGetWidth() - ORIGINAL_ISO_WINDOW_WIDTH) / 2;
|
+ window->width * (window->height - ORIGINAL_ISO_WINDOW_HEIGHT) / 2
|
||||||
|
+ (window->width - ORIGINAL_ISO_WINDOW_WIDTH) / 2;
|
||||||
blitBufferToBufferStretch(isoWindowBuffer,
|
blitBufferToBufferStretch(isoWindowBuffer,
|
||||||
ORIGINAL_ISO_WINDOW_WIDTH,
|
ORIGINAL_ISO_WINDOW_WIDTH,
|
||||||
ORIGINAL_ISO_WINDOW_HEIGHT,
|
ORIGINAL_ISO_WINDOW_HEIGHT,
|
||||||
|
@ -1107,9 +1108,10 @@ int lsgWindowInit(int windowType)
|
||||||
}
|
}
|
||||||
|
|
||||||
// For preview take 640x380 area in the center of isometric window.
|
// For preview take 640x380 area in the center of isometric window.
|
||||||
unsigned char* isoWindowBuffer = windowGetBuffer(gIsoWindow)
|
Window* window = windowGetWindow(gIsoWindow);
|
||||||
+ (screenGetWidth() - ORIGINAL_ISO_WINDOW_WIDTH) / 2 * (screenGetHeight() - ORIGINAL_ISO_WINDOW_HEIGHT) / 2
|
unsigned char* isoWindowBuffer = window->buffer
|
||||||
+ (screenGetWidth() - ORIGINAL_ISO_WINDOW_WIDTH) / 2;
|
+ window->width * (window->height - ORIGINAL_ISO_WINDOW_HEIGHT) / 2
|
||||||
|
+ (window->width - ORIGINAL_ISO_WINDOW_WIDTH) / 2;
|
||||||
blitBufferToBufferStretch(isoWindowBuffer,
|
blitBufferToBufferStretch(isoWindowBuffer,
|
||||||
ORIGINAL_ISO_WINDOW_WIDTH,
|
ORIGINAL_ISO_WINDOW_WIDTH,
|
||||||
ORIGINAL_ISO_WINDOW_HEIGHT,
|
ORIGINAL_ISO_WINDOW_HEIGHT,
|
||||||
|
|
Loading…
Reference in New Issue