Allow taking screenshots with a clamped size.

Sometimes 10x is a little on the big side.
This commit is contained in:
Unknown W. Brackets committed 2016-06-12 07:09:01 -07:00
1 parent 16897bd19d
commit 6151f8ef9f
13 files changed
+81 -31

No files matched your search

+1 -1
View File
@@ -30,4 +30,4 @@ enum ScreenshotType {
SCREENSHOT_RENDER,
};
bool TakeGameScreenshot(const char *filename, ScreenshotFormat fmt, ScreenshotType type);
bool TakeGameScreenshot(const char *filename, ScreenshotFormat fmt, ScreenshotType type, int *width = nullptr, int *height = nullptr, int maxRes = -1);