// DEVMODE is in tenths of a milimeter
devMode->dmPaperWidth = m_paperSize.x * 10;
devMode->dmPaperLength = m_paperSize.y * 10;
+ devMode->dmPaperSize = DMPAPER_USER;
devMode->dmFields |= DM_PAPERWIDTH;
devMode->dmFields |= DM_PAPERLENGTH;
}
gtk_set_locale();
+ // We should have the wxUSE_WCHAR_T test on the _outside_
+#if wxUSE_WCHAR_T
#if defined(__WXGTK20__)
// gtk+ 2.0 supports Unicode through UTF-8 strings
wxConvCurrent = &wxConvUTF8;
-#elif wxUSE_WCHAR_T
+#else
if (!wxOKlibc()) wxConvCurrent = &wxConvLocal;
+#endif
#else
if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
#endif
return 0;
}
-
int wxEntryInitGui()
{
int retValue = 0;
x = XLOG2DEV(x);
y = YLOG2DEV(y);
-#ifdef __WXGTK20__
+#if defined(__WXGTK20__) && wxUSE_WCHAR_T
/* FIXME: the layout engine should probably be abstracted at a higher level in wxDC... */
PangoLayout *layout = pango_layout_new(m_context);
pango_layout_set_font_description(layout, m_fontdesc);
gtk_set_locale();
+ // We should have the wxUSE_WCHAR_T test on the _outside_
+#if wxUSE_WCHAR_T
#if defined(__WXGTK20__)
// gtk+ 2.0 supports Unicode through UTF-8 strings
wxConvCurrent = &wxConvUTF8;
-#elif wxUSE_WCHAR_T
+#else
if (!wxOKlibc()) wxConvCurrent = &wxConvLocal;
+#endif
#else
if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
#endif
return 0;
}
-
int wxEntryInitGui()
{
int retValue = 0;
x = XLOG2DEV(x);
y = YLOG2DEV(y);
-#ifdef __WXGTK20__
+#if defined(__WXGTK20__) && wxUSE_WCHAR_T
/* FIXME: the layout engine should probably be abstracted at a higher level in wxDC... */
PangoLayout *layout = pango_layout_new(m_context);
pango_layout_set_font_description(layout, m_fontdesc);
-D__WXMSW__
-D__WINDOWS__
-DWIN32
+-DWINVER=0x0400
+-D_WIN32_WINNT=0x0400
$(OPT)
$(DEBUG_FLAGS)
$(WIN95FLAG)