diff options
| author | Geoff Voelker | 1996-01-25 03:13:39 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1996-01-25 03:13:39 +0000 |
| commit | 3c190163d271e86a274d97c20bd6e6f88b18a08a (patch) | |
| tree | 512e1e9e3be5a8a3f2490e9c9e2fd5f043c1e195 /src/w32term.h | |
| parent | dd118a073d7800973c5a7e3e74e541c6dc626392 (diff) | |
| download | emacs-3c190163d271e86a274d97c20bd6e6f88b18a08a.tar.gz emacs-3c190163d271e86a274d97c20bd6e6f88b18a08a.zip | |
backout 1996-01-21T00:22:24Z!voelker@cs.washington.edu
Diffstat (limited to 'src/w32term.h')
| -rw-r--r-- | src/w32term.h | 52 |
1 files changed, 6 insertions, 46 deletions
diff --git a/src/w32term.h b/src/w32term.h index 7bf953fd036..a5301896541 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -75,23 +75,6 @@ struct win32_bitmap_record | |||
| 75 | /* Record some info about this pixmap. */ | 75 | /* Record some info about this pixmap. */ |
| 76 | int height, width, depth; | 76 | int height, width, depth; |
| 77 | }; | 77 | }; |
| 78 | |||
| 79 | /* Palette book-keeping stuff for mapping requested colors into the | ||
| 80 | system palette. Keep a ref-counted list of requested colors and | ||
| 81 | regenerate the app palette whenever the requested list changes. */ | ||
| 82 | |||
| 83 | extern Lisp_Object Vwin32_enable_palette; | ||
| 84 | |||
| 85 | struct win32_palette_entry { | ||
| 86 | struct win32_palette_entry * next; | ||
| 87 | PALETTEENTRY entry; | ||
| 88 | #if 0 | ||
| 89 | unsigned refcount; | ||
| 90 | #endif | ||
| 91 | }; | ||
| 92 | |||
| 93 | extern void win32_regenerate_palette(struct frame *f); | ||
| 94 | |||
| 95 | 78 | ||
| 96 | /* For each display (currently only one on win32), we have a structure that | 79 | /* For each display (currently only one on win32), we have a structure that |
| 97 | records information about it. */ | 80 | records information about it. */ |
| @@ -119,15 +102,6 @@ struct win32_display_info | |||
| 119 | /* The cursor to use for vertical scroll bars. */ | 102 | /* The cursor to use for vertical scroll bars. */ |
| 120 | Cursor vertical_scroll_bar_cursor; | 103 | Cursor vertical_scroll_bar_cursor; |
| 121 | 104 | ||
| 122 | /* color palette information */ | ||
| 123 | int has_palette; | ||
| 124 | struct win32_palette_entry * p_colors_in_use; | ||
| 125 | unsigned n_colors_in_use; | ||
| 126 | HPALETTE h_palette; | ||
| 127 | |||
| 128 | /* deferred action flags checked when starting frame update */ | ||
| 129 | int regen_palette; | ||
| 130 | |||
| 131 | /* A table of all the fonts we have already loaded. */ | 105 | /* A table of all the fonts we have already loaded. */ |
| 132 | struct font_info *font_table; | 106 | struct font_info *font_table; |
| 133 | 107 | ||
| @@ -213,9 +187,6 @@ extern struct win32_display_info *win32_term_init (); | |||
| 213 | 187 | ||
| 214 | struct win32_output | 188 | struct win32_output |
| 215 | { | 189 | { |
| 216 | /* Original palette (used to deselect real palette after drawing) */ | ||
| 217 | HPALETTE h_old_palette; | ||
| 218 | |||
| 219 | /* Position of the Win32 window (x and y offsets in root window). */ | 190 | /* Position of the Win32 window (x and y offsets in root window). */ |
| 220 | int left_pos; | 191 | int left_pos; |
| 221 | int top_pos; | 192 | int top_pos; |
| @@ -577,6 +548,10 @@ win32_fill_area (f,hdc,f->output_data.win32->background_pixel,x,y,nx,ny) | |||
| 577 | extern XFontStruct *win32_load_font (); | 548 | extern XFontStruct *win32_load_font (); |
| 578 | extern void win32_unload_font (); | 549 | extern void win32_unload_font (); |
| 579 | 550 | ||
| 551 | extern HDC map_mode(); | ||
| 552 | |||
| 553 | #define my_get_dc(hwnd) (map_mode (GetDC (hwnd))) | ||
| 554 | |||
| 580 | #define WM_EMACS_START (WM_USER + 1) | 555 | #define WM_EMACS_START (WM_USER + 1) |
| 581 | #define WM_EMACS_KILL (WM_EMACS_START + 0x00) | 556 | #define WM_EMACS_KILL (WM_EMACS_START + 0x00) |
| 582 | #define WM_EMACS_CREATEWINDOW (WM_EMACS_START + 0x01) | 557 | #define WM_EMACS_CREATEWINDOW (WM_EMACS_START + 0x01) |
| @@ -603,26 +578,11 @@ typedef struct Win32Msg { | |||
| 603 | RECT rect; | 578 | RECT rect; |
| 604 | } Win32Msg; | 579 | } Win32Msg; |
| 605 | 580 | ||
| 606 | /* Identifiers for array of critical sections; we need one for | ||
| 607 | serializing access to hand-crafter message queue, and another | ||
| 608 | for preventing palette changes during GDI calls. */ | ||
| 609 | enum win32_critical_section { | ||
| 610 | CRIT_MSG, /* message queue */ | ||
| 611 | CRIT_GDI, /* GDI calls */ | ||
| 612 | CRIT_TOTAL /* num of critical sections */ | ||
| 613 | }; | ||
| 614 | |||
| 615 | extern CRITICAL_SECTION critsect[CRIT_TOTAL]; | ||
| 616 | |||
| 617 | extern void init_crit (); | 581 | extern void init_crit (); |
| 582 | extern void enter_crit (); | ||
| 583 | extern void leave_crit (); | ||
| 618 | extern void delete_crit (); | 584 | extern void delete_crit (); |
| 619 | 585 | ||
| 620 | #define enter_crit(index) EnterCriticalSection (&critsect[index]) | ||
| 621 | #define leave_crit(index) LeaveCriticalSection (&critsect[index]) | ||
| 622 | |||
| 623 | extern HDC GetFrameDC (struct frame * f); | ||
| 624 | extern int ReleaseFrameDC (struct frame * f, HDC hDC); | ||
| 625 | |||
| 626 | extern BOOL get_next_msg (); | 586 | extern BOOL get_next_msg (); |
| 627 | extern BOOL post_msg (); | 587 | extern BOOL post_msg (); |
| 628 | extern void wait_for_sync (); | 588 | extern void wait_for_sync (); |