diff options
| author | Jason Rumney | 2008-07-16 10:06:08 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-07-16 10:06:08 +0000 |
| commit | 5cc9d48a1db9f374a010477696a77b06ee49a68b (patch) | |
| tree | 5daf1835218f8aab8bbeda9ea99f3d38806d684d /src | |
| parent | ce69239ac9ae85048e393da62f0fae4a9854ff78 (diff) | |
| download | emacs-5cc9d48a1db9f374a010477696a77b06ee49a68b.tar.gz emacs-5cc9d48a1db9f374a010477696a77b06ee49a68b.zip | |
Fix last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32gui.h | 37 |
2 files changed, 4 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 091b5b8776c..4b357aa2bb9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-07-16 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32gui.h: Repeat 26 June changes lost by last change. | ||
| 4 | |||
| 1 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * systty.h: Remove code for Aix on 386, unsupported platform. | 7 | * systty.h: Remove code for Aix on 386, unsupported platform. |
diff --git a/src/w32gui.h b/src/w32gui.h index d9f09e33134..595796e4c01 100644 --- a/src/w32gui.h +++ b/src/w32gui.h | |||
| @@ -21,19 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | #define EMACS_W32GUI_H | 21 | #define EMACS_W32GUI_H |
| 22 | #include <windows.h> | 22 | #include <windows.h> |
| 23 | 23 | ||
| 24 | #include "w32bdf.h" | ||
| 25 | |||
| 26 | /* Emulate XCharStruct. */ | ||
| 27 | typedef struct _XCharStruct | ||
| 28 | { | ||
| 29 | short rbearing; | ||
| 30 | short lbearing; | ||
| 31 | short width; | ||
| 32 | short ascent; | ||
| 33 | short descent; | ||
| 34 | } XCharStruct; | ||
| 35 | |||
| 36 | |||
| 37 | /* Local memory management for menus. */ | 24 | /* Local memory management for menus. */ |
| 38 | #define local_heap (GetProcessHeap ()) | 25 | #define local_heap (GetProcessHeap ()) |
| 39 | #define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n))) | 26 | #define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n))) |
| @@ -42,30 +29,6 @@ typedef struct _XCharStruct | |||
| 42 | #define malloc_widget_value() ((widget_value *) local_alloc (sizeof (widget_value))) | 29 | #define malloc_widget_value() ((widget_value *) local_alloc (sizeof (widget_value))) |
| 43 | #define free_widget_value(wv) (local_free ((wv))) | 30 | #define free_widget_value(wv) (local_free ((wv))) |
| 44 | 31 | ||
| 45 | |||
| 46 | enum w32_char_font_type | ||
| 47 | { | ||
| 48 | UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */, | ||
| 49 | ANSI_FONT, | ||
| 50 | UNICODE_FONT, | ||
| 51 | BDF_1D_FONT, | ||
| 52 | BDF_2D_FONT | ||
| 53 | }; | ||
| 54 | |||
| 55 | typedef struct W32FontStruct { | ||
| 56 | enum w32_char_font_type font_type; | ||
| 57 | TEXTMETRIC tm; | ||
| 58 | HFONT hfont; | ||
| 59 | bdffont *bdf; | ||
| 60 | int double_byte_p; | ||
| 61 | XCharStruct max_bounds; | ||
| 62 | XCharStruct scratch; | ||
| 63 | /* Only store info for ascii chars, if not fixed pitch. */ | ||
| 64 | XCharStruct * per_char; | ||
| 65 | } W32FontStruct; | ||
| 66 | |||
| 67 | typedef struct W32FontStruct XFontStruct; | ||
| 68 | |||
| 69 | /* Emulate X GC's by keeping color and font info in a structure. */ | 32 | /* Emulate X GC's by keeping color and font info in a structure. */ |
| 70 | typedef struct _XGCValues | 33 | typedef struct _XGCValues |
| 71 | { | 34 | { |