Backport 2011-03-08T01:52:20Z!lekktu@gmail.com from trunk.
* src/w32xfns.c (select_palette): Check success of RealizePalette against GDI_ERROR, not zero.
This commit is contained in:
parent
9c5047fb4e
commit
1e048ad1a6
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-03-11 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
Backport revno:103582 from trunk.
|
||||
* w32xfns.c (select_palette): Check success of RealizePalette against
|
||||
GDI_ERROR, not zero.
|
||||
|
||||
2011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* fringe.c (update_window_fringes): Remove unused variables.
|
||||
|
|
|
@ -98,7 +98,7 @@ select_palette (FRAME_PTR f, HDC hdc)
|
|||
else
|
||||
f->output_data.w32->old_palette = NULL;
|
||||
|
||||
if (RealizePalette (hdc))
|
||||
if (RealizePalette (hdc) != GDI_ERROR)
|
||||
{
|
||||
Lisp_Object frame, framelist;
|
||||
FOR_EACH_FRAME (framelist, frame)
|
||||
|
|
Loading…
Add table
Reference in a new issue