mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-08 04:25:14 +00:00
Tweaks to $EXEICON implementation (libqb)
This commit is contained in:
parent
26a6c94f63
commit
441bc134cf
|
@ -22342,7 +22342,6 @@ int32 func__printwidth(qbs* text, int32 screenhandle, int32 passed){
|
||||||
|
|
||||||
#ifdef DEPENDENCY_ICON
|
#ifdef DEPENDENCY_ICON
|
||||||
void sub__icon(int32 handle_icon, int32 handle_window_icon, int32 passed){
|
void sub__icon(int32 handle_icon, int32 handle_window_icon, int32 passed){
|
||||||
static HANDLE ExeIcon;
|
|
||||||
|
|
||||||
if (new_error) return;
|
if (new_error) return;
|
||||||
|
|
||||||
|
@ -22376,6 +22375,8 @@ int32 func__printwidth(qbs* text, int32 screenhandle, int32 passed){
|
||||||
#ifdef QB64_WINDOWS
|
#ifdef QB64_WINDOWS
|
||||||
while (!window_handle){Sleep(100);}
|
while (!window_handle){Sleep(100);}
|
||||||
|
|
||||||
|
static HANDLE ExeIcon;
|
||||||
|
|
||||||
//Attempt to load the first icon embedded in the .exe
|
//Attempt to load the first icon embedded in the .exe
|
||||||
if (!ExeIcon) ExeIcon = LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(0), IMAGE_ICON,32, 32, 0);
|
if (!ExeIcon) ExeIcon = LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(0), IMAGE_ICON,32, 32, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue