X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/0c382083b6b550c26fad8ac7f59b1ba09663e728..17a2cbbd76385d0be8a4b28974e64f4debf459c1:/src/w32xfns.c diff --git a/src/w32xfns.c b/src/w32xfns.c index 4cbd812ec0..62e45dd987 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -1,6 +1,5 @@ -/* Functions taken directly from X sources for use with the Microsoft W32 API. - Copyright (C) 1989, 1992, 1993, 1994, 1995, 1999, 2001, 2002, 2003, - 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +/* Functions taken directly from X sources for use with the Microsoft Windows API. + Copyright (C) 1989, 1992-1995, 1999, 2001-2012 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -98,7 +97,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) @@ -189,7 +188,7 @@ get_next_msg (W32Msg * lpmsg, BOOL bWait) } nQueue--; - /* Consolidate WM_PAINT messages to optimise redrawing. */ + /* Consolidate WM_PAINT messages to optimize redrawing. */ if (lpmsg->msg.message == WM_PAINT && nQueue) { int_msg * lpCur = lpHead; @@ -439,9 +438,6 @@ XParseGeometry (char *string, /* x_sync is a no-op on W32. */ void -x_sync (void *f) +x_sync (struct frame *f) { } - -/* arch-tag: 4fab3695-4ad3-4cc6-a2b1-fd2c67dc46be - (do not change this comment) */