comparison src/w32xfns.c @ 35943:7a9bc23b91e7

(select_palette): Do nothing if palette hasn't yet been created. It seems we can get sent window messages such as WM_ERASEBKGND before we properly update a frame.
author Andrew Innes <andrewi@gnu.org>
date Tue, 06 Feb 2001 22:19:23 +0000
parents 549bbda5364a
children 23a1cea22d13
comparison
equal deleted inserted replaced
35942:d302cde082a0 35943:7a9bc23b91e7
88 88
89 if (!display_info->has_palette) 89 if (!display_info->has_palette)
90 return; 90 return;
91 91
92 if (display_info->palette == 0) 92 if (display_info->palette == 0)
93 abort (); 93 return;
94 94
95 if (!NILP (Vw32_enable_palette)) 95 if (!NILP (Vw32_enable_palette))
96 f->output_data.w32->old_palette = 96 f->output_data.w32->old_palette =
97 SelectPalette (hdc, display_info->palette, FALSE); 97 SelectPalette (hdc, display_info->palette, FALSE);
98 else 98 else