aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-07-16 10:06:08 +0000
committerJason Rumney2008-07-16 10:06:08 +0000
commit5cc9d48a1db9f374a010477696a77b06ee49a68b (patch)
tree5daf1835218f8aab8bbeda9ea99f3d38806d684d /src
parentce69239ac9ae85048e393da62f0fae4a9854ff78 (diff)
downloademacs-5cc9d48a1db9f374a010477696a77b06ee49a68b.tar.gz
emacs-5cc9d48a1db9f374a010477696a77b06ee49a68b.zip
Fix last change.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32gui.h37
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 @@
12008-07-16 Jason Rumney <jasonr@gnu.org>
2
3 * w32gui.h: Repeat 26 June changes lost by last change.
4
12008-07-16 Dan Nicolaescu <dann@ics.uci.edu> 52008-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. */
27typedef 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
46enum 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
55typedef 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
67typedef 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. */
70typedef struct _XGCValues 33typedef struct _XGCValues
71{ 34{