X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/977c647927a5ac5916f4c737e32885f15a1a5b00..0064e36f4fc76b0e8d2fc8d3e6f63da6e579a414:/src/w32xfns.c diff --git a/src/w32xfns.c b/src/w32xfns.c index 8820edda6c..35e12fd10e 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -1,5 +1,6 @@ /* 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. + Copyright (C) 1989, 1992-1995, 1999, 2001-2015 Free Software + Foundation, Inc. This file is part of GNU Emacs. @@ -23,6 +24,7 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" #include "keyboard.h" #include "frame.h" +#include "window.h" #include "charset.h" #include "fontset.h" #include "blockinput.h" @@ -89,9 +91,9 @@ signal_quit (void) } void -select_palette (FRAME_PTR f, HDC hdc) +select_palette (struct frame *f, HDC hdc) { - struct w32_display_info *display_info = FRAME_W32_DISPLAY_INFO (f); + struct w32_display_info *display_info = FRAME_DISPLAY_INFO (f); if (!display_info->has_palette) return; @@ -116,7 +118,7 @@ select_palette (FRAME_PTR f, HDC hdc) } void -deselect_palette (FRAME_PTR f, HDC hdc) +deselect_palette (struct frame *f, HDC hdc) { if (f->output_data.w32->old_palette) SelectPalette (hdc, f->output_data.w32->old_palette, FALSE); @@ -125,7 +127,7 @@ deselect_palette (FRAME_PTR f, HDC hdc) /* Get a DC for frame and select palette for drawing; force an update of all frames if palette's mapping changes. */ HDC -get_frame_dc (FRAME_PTR f) +get_frame_dc (struct frame *f) { HDC hdc; @@ -145,7 +147,7 @@ get_frame_dc (FRAME_PTR f) } int -release_frame_dc (FRAME_PTR f, HDC hdc) +release_frame_dc (struct frame *f, HDC hdc) { int ret; @@ -332,9 +334,3 @@ drain_message_queue (void) } return retval; } - -/* x_sync is a no-op on W32. */ -void -x_sync (struct frame *f) -{ -}