From a2388a91cf9ceb7efb203a7b4d6d250395cdb744 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 30 Oct 2016 12:58:43 +0000 Subject: Rationalise the use of win32 application instance handle use The use of the application instance handle global variable was inconsistent throughout the windows frontend. By rationalising the passing of these handles it showed that some of the toolbar and throbber parent handles were also setup wrong giving odd offset behaviour. All these issues have been addressed and the throbber is now in the correct position. --- frontends/windows/gui.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'frontends/windows/gui.c') diff --git a/frontends/windows/gui.c b/frontends/windows/gui.c index 0ab1e32ee..043a93dd9 100644 --- a/frontends/windows/gui.c +++ b/frontends/windows/gui.c @@ -39,10 +39,14 @@ #include "windows/filetype.h" #include "windows/gui.h" -static bool win32_quit = false; - -HINSTANCE hInstance; /** win32 application instance handle. */ +/** + * win32 application instance handle. + * + * This handle is set in the main windows entry point. + */ +HINSTANCE hinst; +static bool win32_quit = false; void win32_set_quit(bool q) { -- cgit v1.2.3