summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2020-07-29 03:51:19 (GMT)
committerculler <culler>2020-07-29 03:51:19 (GMT)
commit549b6fe77986ec243d198acfdff6f244249c1ba9 (patch)
tree2dff12636c25d344ded6ca2276ea550d724f4266
parent18690594d7c9f8a57946fc6d838930b09e104754 (diff)
downloadtk-549b6fe77986ec243d198acfdff6f244249c1ba9.zip
tk-549b6fe77986ec243d198acfdff6f244249c1ba9.tar.gz
tk-549b6fe77986ec243d198acfdff6f244249c1ba9.tar.bz2
Remove lines that were commented out.
-rw-r--r--macosx/tkMacOSXColor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c
index 8b193b8..8e286fa 100644
--- a/macosx/tkMacOSXColor.c
+++ b/macosx/tkMacOSXColor.c
@@ -102,7 +102,8 @@ GetEntryFromPixel(
SystemColorMapEntry *entry)
{
MacPixel p;
- unsigned int index = 0; //FIX ME
+ // Should make sure this is the rgbColor index, even if the data gets shuffled.
+ unsigned int index = 0;
p.ulong = pixel;
if (p.pixel.colortype != rgbColor) {
@@ -326,7 +327,6 @@ TkSetMacColor(
OSStatus err = -1;
SystemColorMapEntry entry;
- // if (GetEntryFromPixelCode((pixel >> 24) & 0xff, &entry)) {
if (GetEntryFromPixel(pixel, &entry)) {
err = ChkErr(SetCGColorComponents, entry, pixel, color);
}
@@ -513,9 +513,6 @@ TkMacOSXSetColorInContext(
CGRect rect;
HIThemeBackgroundDrawInfo info = {0, kThemeStateActive, 0};;
- // if (code < FIRST_SEMANTIC_COLOR) {
- // cgColor = CopyCachedColor(gc, pixel);
- // }
if (!cgColor && GetEntryFromPixel(pixel, &entry)) {
switch (entry.type) {
case HIBrush: