mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-03 13:31:23 +00:00
Merge pull request #154 from mkilgore/remove-dpi-awareness
Remove DPI Awareness on Windows
This commit is contained in:
commit
4449c3c545
|
@ -24356,24 +24356,6 @@ void call_int(int32 i) {
|
|||
// Creating/destroying an image surface:
|
||||
|
||||
int32 func__newimage(int32 x, int32 y, int32 bpp, int32 passed) {
|
||||
#ifdef QB64_WINDOWS
|
||||
# if WINVER >= 0x0600 // this block is not compatible with XP
|
||||
static bool j;
|
||||
if (j != 1) {
|
||||
FARPROC dpiaware;
|
||||
HMODULE user32 = LoadLibrary(TEXT("user32.dll"));
|
||||
if (user32 != NULL) {
|
||||
dpiaware = GetProcAddress(user32, "SetProcessDPIAware");
|
||||
if (NULL != dpiaware) {
|
||||
(dpiaware)();
|
||||
j = 1;
|
||||
FreeLibrary(user32);
|
||||
}
|
||||
FreeLibrary(user32);
|
||||
}
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
static int32 i;
|
||||
if (new_error)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue