diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-03-17 21:55:12 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-03-17 22:00:54 +0000 |
commit | d15ab96a51287469082e8d9068e2608a386f9e5f (patch) | |
tree | 346fb22044567be929d9f0dc47f62732f4633815 /windows/window.c | |
parent | 232cda5317ae39d54852f741fbbd09c9618143cd (diff) | |
download | netsurf-d15ab96a51287469082e8d9068e2608a386f9e5f.tar.gz netsurf-d15ab96a51287469082e8d9068e2608a386f9e5f.tar.bz2 |
Fix size_t printf formatting
The printf formatting for size_t is set in c99 as %zu but in windows
it is %Iu this is solved by adding and inttypes style PRI macro for size_t
This also uses this macro everywhere size_t is formatted.
Diffstat (limited to 'windows/window.c')
-rw-r--r-- | windows/window.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/windows/window.c b/windows/window.c index 455e6e5f5..d3f2c99c5 100644 --- a/windows/window.c +++ b/windows/window.c @@ -1451,16 +1451,16 @@ win32_window_update_box(struct gui_window *gw, const struct rect *rect) -static void win32_window_get_dimensions(struct gui_window *w, int *width, int *height, +static void win32_window_get_dimensions(struct gui_window *gw, int *width, int *height, bool scaled) { - if (w == NULL) + if (gw == NULL) return; - LOG("get dimensions %p w=%d h=%d", w, w->width, w->height); + LOG("get dimensions %p w=%d h=%d", gw, gw->width, gw->height); - *width = w->width; - *height = w->height; + *width = gw->width; + *height = gw->height; } static void win32_window_update_extent(struct gui_window *w) |