diff options
author | culler <culler> | 2020-11-17 18:37:31 (GMT) |
---|---|---|
committer | culler <culler> | 2020-11-17 18:37:31 (GMT) |
commit | 0050bf7b52205d79ae1721df9921a8a65ad38c4f (patch) | |
tree | 77b18bc3eaf310ae65df0e1cddab0f9c6553907f /macosx/tkMacOSXColor.c | |
parent | 27d4c308ee4bd6b569ac727a4debd855e90de90e (diff) | |
download | tk-0050bf7b52205d79ae1721df9921a8a65ad38c4f.zip tk-0050bf7b52205d79ae1721df9921a8a65ad38c4f.tar.gz tk-0050bf7b52205d79ae1721df9921a8a65ad38c4f.tar.bz2 |
I think I am supposed to add braces.
Diffstat (limited to 'macosx/tkMacOSXColor.c')
-rw-r--r-- | macosx/tkMacOSXColor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c index 6d5eb92..543f1d5 100644 --- a/macosx/tkMacOSXColor.c +++ b/macosx/tkMacOSXColor.c @@ -177,7 +177,7 @@ TkMacOSXRGBPixel( unsigned long green, unsigned long blue) { - MacPixel p = 0; + MacPixel p = {0}; p.pixel.colortype = rgbColor; p.pixel.value = ((red & 0xff) << 16) | ((green & 0xff) << 8) | @@ -207,7 +207,7 @@ MODULE_SCOPE unsigned long TkMacOSXClearPixel( void) { - MacPixel p = 0; + MacPixel p = {0}; p.pixel.value = 0; p.pixel.colortype = clearColor; return p.ulong; @@ -236,7 +236,7 @@ SystemColorDatum* GetEntryFromPixel( unsigned long pixel) { - MacPixel p = 0; + MacPixel p = {0}; int index = rgbColorIndex; p.ulong = pixel; @@ -637,7 +637,7 @@ TkpGetColor( if (strncasecmp(name, "system", 6) == 0) { Tcl_HashEntry *hPtr = Tcl_FindHashEntry(&systemColors, name + 6); - MacPixel p = 0; + MacPixel p = {0}; if (hPtr != NULL) { SystemColorDatum *entry = (SystemColorDatum *)Tcl_GetHashValue(hPtr); |