diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-08-20 22:26:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-08-21 10:27:16 +0100 |
commit | a8248a7bb9555e558cb8c7eed1146c62ab024130 (patch) | |
tree | 7fddb99258c7bea07eb1c855b07fa175129c11bd /frontends/windows/window.c | |
parent | 650ac58604104c3097c83718d32331f06779b52f (diff) | |
download | netsurf-a8248a7bb9555e558cb8c7eed1146c62ab024130.tar.gz netsurf-a8248a7bb9555e558cb8c7eed1146c62ab024130.tar.bz2 |
Update windows frontend to use windows resources
Diffstat (limited to 'frontends/windows/window.c')
-rw-r--r-- | frontends/windows/window.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 { |