summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-24 15:23:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-24 15:23:16 (GMT)
commit97a31b80b8c9dd4d9a19984a9b709af0265d4c43 (patch)
treefcea170d4a9247efb33059020fe52f2c61643194 /win/tkWinX.c
parent473ed169135beac6352af2c5f61cca5d404ccf51 (diff)
parentc1d2b9d95856fe913236eec23533b0bd522726d3 (diff)
downloadtk-97a31b80b8c9dd4d9a19984a9b709af0265d4c43.zip
tk-97a31b80b8c9dd4d9a19984a9b709af0265d4c43.tar.gz
tk-97a31b80b8c9dd4d9a19984a9b709af0265d4c43.tar.bz2
Merge 8.6
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r--win/tkWinX.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 96a6958..2bda128 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -455,30 +455,30 @@ TkWinDisplayChanged(
screen->root_visual->visualid = 0;
if (GetDeviceCaps(dc, RASTERCAPS) & RC_PALETTE) {
screen->root_visual->map_entries = GetDeviceCaps(dc, SIZEPALETTE);
- screen->root_visual->class = PseudoColor;
+ screen->root_visual->c_class = PseudoColor;
screen->root_visual->red_mask = 0x0;
screen->root_visual->green_mask = 0x0;
screen->root_visual->blue_mask = 0x0;
} else if (screen->root_depth == 4) {
- screen->root_visual->class = StaticColor;
+ screen->root_visual->c_class = StaticColor;
screen->root_visual->map_entries = 16;
} else if (screen->root_depth == 8) {
- screen->root_visual->class = StaticColor;
+ screen->root_visual->c_class = StaticColor;
screen->root_visual->map_entries = 256;
} else if (screen->root_depth == 12) {
- screen->root_visual->class = TrueColor;
+ screen->root_visual->c_class = TrueColor;
screen->root_visual->map_entries = 32;
screen->root_visual->red_mask = 0xf0;
screen->root_visual->green_mask = 0xf000;
screen->root_visual->blue_mask = 0xf00000;
} else if (screen->root_depth == 16) {
- screen->root_visual->class = TrueColor;
+ screen->root_visual->c_class = TrueColor;
screen->root_visual->map_entries = 64;
screen->root_visual->red_mask = 0xf8;
screen->root_visual->green_mask = 0xfc00;
screen->root_visual->blue_mask = 0xf80000;
} else if (screen->root_depth >= 24) {
- screen->root_visual->class = TrueColor;
+ screen->root_visual->c_class = TrueColor;
screen->root_visual->map_entries = 256;
screen->root_visual->red_mask = 0xff;
screen->root_visual->green_mask = 0xff00;