diff options
author | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-06-04 10:30:10 -0700 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-06-04 19:30:10 +0200 |
commit | 0631ac60d7debce05fbd1631c7a71de0be96f3d0 (patch) | |
tree | 5ccbe4f82e9bc1911d35a115d15ebf0f6daeac02 | |
parent | f759dfe3b54da9daefd636bd9f291a51cc4ccfcf (diff) | |
download | navit-0631ac60d7debce05fbd1631c7a71de0be96f3d0.tar.gz |
cleanup:win32:Remove unused variables (#611)
-rw-r--r-- | navit/graphics/win32/graphics_win32.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c index 7a8d4e8cc..1c8172c7c 100644 --- a/navit/graphics/win32/graphics_win32.c +++ b/navit/graphics/win32/graphics_win32.c @@ -1043,7 +1043,6 @@ static int pngdecode(struct graphics_priv *gr, char *name, struct graphics_image int bit_depth; int color_type; - int alpha_present; int ret; int i; FILE *png_file; @@ -1143,7 +1142,6 @@ static int pngdecode(struct graphics_priv *gr, char *name, struct graphics_image png_read_update_info (png_ptr, info_ptr); img->channels = 4; - alpha_present = 1; /* row_bytes is the width x number of channels x (bit-depth / 8) */ img->row_bytes = png_get_rowbytes (png_ptr, info_ptr); @@ -1195,10 +1193,8 @@ static void pngscale(struct graphics_image_priv *img, struct graphics_priv *gr, HBITMAP origBmp; BITMAPINFO pnginfo; HDC dc1, dc2; - png_byte *origPixels; origBmp=img->hBitmap; - origPixels=img->png_pixels; memset(&pnginfo, 0, sizeof(pnginfo)); pnginfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); @@ -1516,7 +1512,6 @@ static struct graphics_priv* graphics_win32_new( struct navit *nav, struct graph struct attr *attr; struct graphics_priv* this_; - HMODULE user32; if (!event_request_system("win32","graphics_win32")) return NULL; this_=graphics_win32_new_helper(meth); |