1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00

Tweaks to $EXEICON implementation (libqb)

This commit is contained in:
FellippeHeitor 2016-08-18 07:28:56 -03:00 committed by GitHub
parent 26a6c94f63
commit 441bc134cf

View file

@ -22342,7 +22342,6 @@ int32 func__printwidth(qbs* text, int32 screenhandle, int32 passed){
#ifdef DEPENDENCY_ICON
void sub__icon(int32 handle_icon, int32 handle_window_icon, int32 passed){
static HANDLE ExeIcon;
if (new_error) return;
@ -22376,6 +22375,8 @@ int32 func__printwidth(qbs* text, int32 screenhandle, int32 passed){
#ifdef QB64_WINDOWS
while (!window_handle){Sleep(100);}
static HANDLE ExeIcon;
//Attempt to load the first icon embedded in the .exe
if (!ExeIcon) ExeIcon = LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(0), IMAGE_ICON,32, 32, 0);