diff options
author | marc_culler <marc.culler@gmail.com> | 2021-06-04 18:30:24 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2021-06-04 18:30:24 (GMT) |
commit | 92f3891e86101725b5292bb924df94c1607c0325 (patch) | |
tree | 24ca652a64c5b96af0501d91972655360ac95ef6 /generic/tkCanvas.c | |
parent | 8d82da57a843c0964f6cad3d138d6551b1722cb1 (diff) | |
download | tk-92f3891e86101725b5292bb924df94c1607c0325.zip tk-92f3891e86101725b5292bb924df94c1607c0325.tar.gz tk-92f3891e86101725b5292bb924df94c1607c0325.tar.bz2 |
Remove irrelevant conditional compilation.
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index c82a999..a210cab 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -2807,19 +2807,10 @@ DrawCanvas( blockPtr.height = cHeight; blockPtr.pixelSize = 4; blockPtr.pitch = blockPtr.pixelSize * blockPtr.width; -#ifndef MAC_OSX_TK -/* XGetImage returns a pixmap whose 32-bit pixels have byte order RGBA */ blockPtr.offset[0] = 0; blockPtr.offset[1] = 1; blockPtr.offset[2] = 2; blockPtr.offset[3] = 3; -#else -/* XGetImage returns a pixmap whose 32-bit pixels have byte order ARGB */ - blockPtr.offset[0] = 1; - blockPtr.offset[1] = 2; - blockPtr.offset[2] = 3; - blockPtr.offset[3] = 0; -#endif blockPtr.pixelPtr = (unsigned char *)ckalloc(blockPtr.pixelSize * blockPtr.height * blockPtr.width); /* |