Sample renderWidth/pixelWidth/height once per frame for the framebuffer manager.

This commit is contained in:
Henrik Rydgard
2015-09-19 16:19:03 +02:00
parent 60bbe16c89
commit 4d18d478a0
7 changed files with 75 additions and 58 deletions
+4 -2
View File
@@ -21,11 +21,13 @@
#define strcasecmp _stricmp
void OutputDebugStringUTF8(const char *p) {
wchar_t temp[2048];
int len = std::min(2047, (int)strlen(p));
wchar_t temp[4096];
int len = std::min(4095, (int)strlen(p));
int size = (int)MultiByteToWideChar(CP_UTF8, 0, p, len, NULL, 0);
MultiByteToWideChar(CP_UTF8, 0, p, len, temp, size);
temp[size] = 0;
OutputDebugString(temp);
}