- add to new custom printscreen code 3D render info;
This commit is contained in:
mtabachenko 2009-12-21 00:19:35 +00:00
parent 3f59a0b5d4
commit ee6f3dff11
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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);