summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXImage.c
diff options
context:
space:
mode:
authorculler <culler>2017-11-10 21:15:44 (GMT)
committerculler <culler>2017-11-10 21:15:44 (GMT)
commit09f2db0dd68b8c2554dab48a674eb269607bb73e (patch)
tree63bec7422b1cedd95e48273b16fcdbb4f4c3c8eb /macosx/tkMacOSXImage.c
parent3dfc96b9884aa8f62d3f70fd310c7a14fe6d725f (diff)
downloadtk-09f2db0dd68b8c2554dab48a674eb269607bb73e.zip
tk-09f2db0dd68b8c2554dab48a674eb269607bb73e.tar.gz
tk-09f2db0dd68b8c2554dab48a674eb269607bb73e.tar.bz2
Small changes to address compiler warnings.
Diffstat (limited to 'macosx/tkMacOSXImage.c')
-rw-r--r--macosx/tkMacOSXImage.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index b2909c4..31e2f41 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -152,12 +152,12 @@ XGetImage(
int format)
{
NSBitmapImageRep* bitmap_rep = NULL;
- NSUInteger bitmap_fmt = 0;
- XImage* imagePtr = NULL;
- char* bitmap = NULL;
- int depth = 32, offset = 0, bitmap_pad = 0;
- int bytes_per_row, size, row, n, m;
- char R, G, B, A;
+ NSUInteger bitmap_fmt = 0;
+ XImage* imagePtr = NULL;
+ char* bitmap = NULL;
+ char R, G, B, A;
+ int depth = 32, offset = 0, bitmap_pad = 0;
+ unsigned int bytes_per_row, size, row, n, m;
unsigned int scalefactor=1, scaled_height=height, scaled_width=width;
NSWindow *win = TkMacOSXDrawableWindow(drawable);
static enum {unknown, no, yes} has_retina = unknown;