Mercurial > hg > xemacs-beta
comparison src/redisplay-msw.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | b531bf8658e9 |
children | ecf1ebac70d8 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
208 | 208 |
209 Given a number of parameters munge the DC so it has those properties. | 209 Given a number of parameters munge the DC so it has those properties. |
210 ****************************************************************************/ | 210 ****************************************************************************/ |
211 static void | 211 static void |
212 mswindows_update_dc (HDC hdc, Lisp_Object fg, Lisp_Object bg, | 212 mswindows_update_dc (HDC hdc, Lisp_Object fg, Lisp_Object bg, |
213 Lisp_Object bg_pmap) | 213 Lisp_Object UNUSED (bg_pmap)) |
214 { | 214 { |
215 if (!NILP (fg)) | 215 if (!NILP (fg)) |
216 { | 216 { |
217 SetTextColor (hdc, COLOR_INSTANCE_MSWINDOWS_COLOR | 217 SetTextColor (hdc, COLOR_INSTANCE_MSWINDOWS_COLOR |
218 (XCOLOR_INSTANCE (fg))); | 218 (XCOLOR_INSTANCE (fg))); |
240 mswindows_output_hline | 240 mswindows_output_hline |
241 | 241 |
242 Output a horizontal line in the foreground of its face. | 242 Output a horizontal line in the foreground of its face. |
243 ****************************************************************************/ | 243 ****************************************************************************/ |
244 static void | 244 static void |
245 mswindows_output_hline (struct window *w, struct display_line *dl, struct rune *rb) | 245 mswindows_output_hline (struct window *UNUSED (w), |
246 struct display_line *UNUSED (dl), | |
247 struct rune *UNUSED (rb)) | |
246 { /* #### Implement me */ | 248 { /* #### Implement me */ |
247 } | 249 } |
248 | 250 |
249 | 251 |
250 /***************************************************************************** | 252 /***************************************************************************** |
434 FINDEX Index for the face cache element describing how to display | 436 FINDEX Index for the face cache element describing how to display |
435 the text. | 437 the text. |
436 ****************************************************************************/ | 438 ****************************************************************************/ |
437 static void | 439 static void |
438 mswindows_output_string (struct window *w, struct display_line *dl, | 440 mswindows_output_string (struct window *w, struct display_line *dl, |
439 Ichar_dynarr *buf, int xpos, int xoffset, int clip_start, | 441 Ichar_dynarr *buf, int xpos, int xoffset, |
440 int width, face_index findex, | 442 int clip_start, int width, face_index findex, |
441 int cursor, int cursor_start, int cursor_width, | 443 int UNUSED (cursor), int UNUSED (cursor_start), |
442 int cursor_height) | 444 int UNUSED (cursor_width), int UNUSED (cursor_height)) |
443 { | 445 { |
444 struct frame *f = XFRAME (w->frame); | 446 struct frame *f = XFRAME (w->frame); |
445 /* struct device *d = XDEVICE (f->device);*/ | 447 /* struct device *d = XDEVICE (f->device);*/ |
446 Lisp_Object window; | 448 Lisp_Object window; |
447 HDC hdc = get_frame_dc (f, 1); | 449 HDC hdc = get_frame_dc (f, 1); |
680 /* Output a pixmap at the desired location. | 682 /* Output a pixmap at the desired location. |
681 DB normalized display_box. | 683 DB normalized display_box. |
682 DGA normalized display_glyph_area. */ | 684 DGA normalized display_glyph_area. */ |
683 static void | 685 static void |
684 mswindows_output_pixmap (struct window *w, Lisp_Object image_instance, | 686 mswindows_output_pixmap (struct window *w, Lisp_Object image_instance, |
685 struct display_box *db, struct display_glyph_area *dga, | 687 struct display_box *db, |
686 face_index findex, int cursor_start, int cursor_width, | 688 struct display_glyph_area *dga, face_index findex, |
687 int cursor_height, int bg_pixmap) | 689 int UNUSED (cursor_start), int UNUSED (cursor_width), |
690 int UNUSED (cursor_height), int bg_pixmap) | |
688 { | 691 { |
689 struct frame *f = XFRAME (w->frame); | 692 struct frame *f = XFRAME (w->frame); |
690 HDC hdc = get_frame_dc (f, 1); | 693 HDC hdc = get_frame_dc (f, 1); |
691 | 694 |
692 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); | 695 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); |
827 mswindows_frame_output_begin | 830 mswindows_frame_output_begin |
828 | 831 |
829 Perform any necessary initialization prior to an update. | 832 Perform any necessary initialization prior to an update. |
830 ****************************************************************************/ | 833 ****************************************************************************/ |
831 static void | 834 static void |
832 mswindows_frame_output_begin (struct frame *f) | 835 mswindows_frame_output_begin (struct frame *UNUSED (f)) |
833 { | 836 { |
834 } | 837 } |
835 | 838 |
836 /***************************************************************************** | 839 /***************************************************************************** |
837 mswindows_frame_output_end | 840 mswindows_frame_output_end |
838 | 841 |
839 Perform any necessary flushing of queues when an update has completed. | 842 Perform any necessary flushing of queues when an update has completed. |
840 ****************************************************************************/ | 843 ****************************************************************************/ |
841 static void | 844 static void |
842 mswindows_frame_output_end (struct frame *f) | 845 mswindows_frame_output_end (struct frame * |
846 #ifdef DEFER_WINDOW_POS | |
847 f | |
848 #else | |
849 UNUSED (f) | |
850 #endif | |
851 ) | |
843 { | 852 { |
844 #ifdef DEFER_WINDOW_POS | 853 #ifdef DEFER_WINDOW_POS |
845 HDWP hdwp = FRAME_MSWINDOWS_DATA (f)->hdwp; | 854 HDWP hdwp = FRAME_MSWINDOWS_DATA (f)->hdwp; |
846 | 855 |
847 if (hdwp != 0) | 856 if (hdwp != 0) |
853 GdiFlush(); | 862 GdiFlush(); |
854 } | 863 } |
855 | 864 |
856 /* Printer version is more lightweight. */ | 865 /* Printer version is more lightweight. */ |
857 static void | 866 static void |
858 msprinter_frame_output_end (struct frame *f) | 867 msprinter_frame_output_end (struct frame *UNUSED (f)) |
859 { | 868 { |
860 GdiFlush(); | 869 GdiFlush(); |
861 } | 870 } |
862 | 871 |
863 static int | 872 static int |
875 | 884 |
876 return 1; | 885 return 1; |
877 } | 886 } |
878 | 887 |
879 static void | 888 static void |
880 mswindows_ring_bell (struct device *d, int volume, int pitch, int duration) | 889 mswindows_ring_bell (struct device *UNUSED (d), int UNUSED (volume), |
890 int UNUSED (pitch), int UNUSED (duration)) | |
881 { | 891 { |
882 /* Beep does not work at all, anyways! -kkm */ | 892 /* Beep does not work at all, anyways! -kkm */ |
883 MessageBeep (MB_OK); | 893 MessageBeep (MB_OK); |
884 } | 894 } |
885 | 895 |
1101 mswindows_output_vertical_divider | 1111 mswindows_output_vertical_divider |
1102 | 1112 |
1103 Draw a vertical divider down the right side of the given window. | 1113 Draw a vertical divider down the right side of the given window. |
1104 ****************************************************************************/ | 1114 ****************************************************************************/ |
1105 static void | 1115 static void |
1106 mswindows_output_vertical_divider (struct window *w, int clear_unused) | 1116 mswindows_output_vertical_divider (struct window *w, int UNUSED (clear_unused)) |
1107 { | 1117 { |
1108 struct frame *f = XFRAME (w->frame); | 1118 struct frame *f = XFRAME (w->frame); |
1109 HDC hdc = get_frame_dc (f, 1); | 1119 HDC hdc = get_frame_dc (f, 1); |
1110 RECT rect; | 1120 RECT rect; |
1111 int spacing = XINT (w->vertical_divider_spacing); | 1121 int spacing = XINT (w->vertical_divider_spacing); |
1185 | 1195 |
1186 Clear the area in the box defined by the given parameters using the | 1196 Clear the area in the box defined by the given parameters using the |
1187 given face. | 1197 given face. |
1188 ****************************************************************************/ | 1198 ****************************************************************************/ |
1189 static void | 1199 static void |
1190 mswindows_clear_region (Lisp_Object locale, struct device *d, struct frame *f, | 1200 mswindows_clear_region ( |
1191 face_index findex, int x, int y, | 1201 #ifdef HAVE_SCROLLBARS |
1192 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor, | 1202 Lisp_Object locale, |
1193 Lisp_Object background_pixmap) | 1203 #else |
1204 Lisp_Object UNUSED (locale), | |
1205 #endif | |
1206 struct device *UNUSED (d), struct frame *f, | |
1207 face_index UNUSED (findex), int x, int y, | |
1208 int width, int height, Lisp_Object fcolor, | |
1209 Lisp_Object bcolor, Lisp_Object background_pixmap) | |
1194 { | 1210 { |
1195 RECT rect = { x, y, x+width, y+height }; | 1211 RECT rect = { x, y, x+width, y+height }; |
1196 HDC hdc = get_frame_dc (f, 1); | 1212 HDC hdc = get_frame_dc (f, 1); |
1197 | 1213 |
1198 if (!NILP (background_pixmap)) | 1214 if (!NILP (background_pixmap)) |
1215 #endif | 1231 #endif |
1216 } | 1232 } |
1217 | 1233 |
1218 /* #### Implement me! */ | 1234 /* #### Implement me! */ |
1219 static void | 1235 static void |
1220 mswindows_clear_frame (struct frame *f) | 1236 mswindows_clear_frame (struct frame *UNUSED (f)) |
1221 { | 1237 { |
1222 GdiFlush (); | 1238 GdiFlush (); |
1223 } | 1239 } |
1224 | 1240 |
1225 | 1241 |