comparison os2/dw.c @ 360:cf66410d03b4

Use 8.Helv as the default font before Warp 4.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 20 Apr 2003 14:58:11 +0000
parents fb2667339e9f
children eaebef97fc4f
comparison
equal deleted inserted replaced
359:9ddcbbaebd50 360:cf66410d03b4
34 void _do_resize(Box *thisbox, int x, int y); 34 void _do_resize(Box *thisbox, int x, int y);
35 void _handle_splitbar_resize(HWND hwnd, float percent, int type, int x, int y); 35 void _handle_splitbar_resize(HWND hwnd, float percent, int type, int x, int y);
36 36
37 char ClassName[] = "dynamicwindows"; 37 char ClassName[] = "dynamicwindows";
38 char SplitbarClassName[] = "dwsplitbar"; 38 char SplitbarClassName[] = "dwsplitbar";
39 char DefaultFont[] = "9.WarpSans"; 39 char *DefaultFont = "9.WarpSans";
40 40
41 HAB dwhab = 0; 41 HAB dwhab = 0;
42 HMQ dwhmq = 0; 42 HMQ dwhmq = 0;
43 DWTID _dwtid = 0; 43 DWTID _dwtid = 0;
44 LONG _foreground = 0xAAAAAA, _background = 0; 44 LONG _foreground = 0xAAAAAA, _background = 0;
3083 /* Get the OS/2 version. */ 3083 /* Get the OS/2 version. */
3084 DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_MS_COUNT,(void *)aulBuffer, 4*sizeof(ULONG)); 3084 DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_MS_COUNT,(void *)aulBuffer, 4*sizeof(ULONG));
3085 3085
3086 desktop = WinQueryDesktopWindow(dwhab, NULLHANDLE); 3086 desktop = WinQueryDesktopWindow(dwhab, NULLHANDLE);
3087 3087
3088 if(!IS_WARP4())
3089 DefaultFont = "8.Helv";
3088 return rc; 3090 return rc;
3089 } 3091 }
3090 3092
3091 /* 3093 /*
3092 * Runs a message loop for Dynamic Windows. 3094 * Runs a message loop for Dynamic Windows.