Mercurial > hg > xemacs-beta
diff src/device-msw.c @ 850:f915ad7befaf
[xemacs-hg @ 2002-05-21 23:47:38 by jhar]
Fix printer page setup to work on Win95
author | jhar |
---|---|
date | Tue, 21 May 2002 23:47:40 +0000 |
parents | 6728e641994e |
children | e7ee5f8bde58 |
line wrap: on
line diff
--- a/src/device-msw.c Tue May 21 10:29:15 2002 +0000 +++ b/src/device-msw.c Tue May 21 23:47:40 2002 +0000 @@ -871,11 +871,12 @@ { Lisp_Devmode *ldm = decode_devmode (device); PAGESETUPDLGW pd; - DWORD data; + TCHAR measure[2*MAX_XETCHAR_SIZE]; + int data; - qxeGetLocaleInfo (LOCALE_USER_DEFAULT, - LOCALE_IMEASURE | LOCALE_RETURN_NUMBER, - (Extbyte *) &data, sizeof (data)); + qxeGetLocaleInfo (LOCALE_USER_DEFAULT, LOCALE_IMEASURE, + measure, sizeof (measure)/MAX_XETCHAR_SIZE); + data = qxestrcmp (measure, XETEXT ("0")); memset (&pd, 0, sizeof (pd)); pd.lStructSize = sizeof (pd);