winport:
- add to new custom printscreen code 3D render info;
This commit is contained in:
parent
3f59a0b5d4
commit
ee6f3dff11
|
@ -11,7 +11,7 @@ General/Core:
|
|||
bug: fix huge rerecording movie file handle leak
|
||||
enh: support devkitpro argv
|
||||
enh: add gbaslot-rom commandline
|
||||
enh: add EXXXXXXX cheat codes
|
||||
bug: fix EXXXXXXX cheat codes
|
||||
|
||||
Graphics:
|
||||
bug: fix a mistakenly rendered OBJ window
|
||||
|
|
|
@ -3276,11 +3276,11 @@ void ScreenshotToClipboard()
|
|||
|
||||
HDC hScreenDC = GetDC(NULL);
|
||||
HDC hMemDC = CreateCompatibleDC(hScreenDC);
|
||||
HBITMAP hMemBitmap = CreateCompatibleBitmap(hScreenDC, 256, 384 + (14 * (twolinever ? 5:4)));
|
||||
HBITMAP hMemBitmap = CreateCompatibleBitmap(hScreenDC, 256, 384 + (14 * (twolinever ? 6:5)));
|
||||
HBITMAP hOldBitmap = (HBITMAP)SelectObject(hMemDC, hMemBitmap);
|
||||
HFONT hOldFont = (HFONT)SelectObject(hMemDC, hFont);
|
||||
|
||||
RECT rc; SetRect(&rc, 0, 0, 256, 384 + (14 * (twolinever ? 5:4)));
|
||||
RECT rc; SetRect(&rc, 0, 0, 256, 384 + (14 * (twolinever ? 6:5)));
|
||||
|
||||
BITMAPV4HEADER bmi;
|
||||
memset(&bmi, 0, sizeof(bmi));
|
||||
|
@ -3323,6 +3323,9 @@ void ScreenshotToClipboard()
|
|||
sprintf(str, "FPS: %i/%i | %s", mainLoopData.fps, mainLoopData.fps3d, paused ? "Paused":"Running");
|
||||
TextOut(hMemDC, 8, 384 + 14 * (twolinever ? 4:3), str, strlen(str));
|
||||
|
||||
sprintf(str, "3D Render: %s", core3DList[cur3DCore]->name);
|
||||
TextOut(hMemDC, 8, 384 + 14 * (twolinever ? 5:4), str, strlen(str));
|
||||
|
||||
OpenClipboard(NULL);
|
||||
EmptyClipboard();
|
||||
SetClipboardData(CF_BITMAP, hMemBitmap);
|
||||
|
|
Loading…
Reference in New Issue