From a8248a7bb9555e558cb8c7eed1146c62ab024130 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 20 Aug 2018 22:26:41 +0100 Subject: Update windows frontend to use windows resources --- frontends/windows/window.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'frontends/windows/window.c') diff --git a/frontends/windows/window.c b/frontends/windows/window.c index 3ccf8295e..681b2e282 100644 --- a/frontends/windows/window.c +++ b/frontends/windows/window.c @@ -534,7 +534,6 @@ nsws_window_throbber_create(HINSTANCE hInstance, struct gui_window *gw) { HWND hwnd; - char avi[PATH_MAX]; int urlx, urly, urlwidth, urlheight; urlbar_dimensions(hWndParent, @@ -554,9 +553,8 @@ nsws_window_throbber_create(HINSTANCE hInstance, hInstance, NULL); - nsws_find_resource(avi, "throbber.avi", "windows/res/throbber.avi"); - NSLOG(netsurf, INFO, "setting throbber avi as %s", avi); - Animate_Open(hwnd, avi); + Animate_Open(hwnd, MAKEINTRESOURCE(IDR_THROBBER_AVI)); + if (gw->throbbing) { Animate_Play(hwnd, 0, -1, -1); } else { -- cgit v1.2.3