dc->SetFont(* NormalFont);
long xx;
long yy;
- dc->GetTextExtent("X", &xx, &yy);
+ dc->GetTextExtent(_T("X"), &xx, &yy);
char_height = (int)yy;
if (current_page == 0)
// Read preferences
void ReadPreferences()
{
+#if wxUSE_RESOURCES
+#if wxUSE_RESOURCES
wxGetResource("wxPoem", "FontSize", &pointSize);
wxGetResource("wxPoem", "X", &XPos);
wxGetResource("wxPoem", "Y", &YPos);
+#endif
+#endif
}
// Write preferences to disk
{
#ifdef __WXMSW__
TheMainWindow->GetPosition(&XPos, &YPos);
+#if wxUSE_RESOURCES
+#if wxUSE_RESOURCES
wxWriteResource("wxPoem", "FontSize", pointSize);
wxWriteResource("wxPoem", "X", XPos);
wxWriteResource("wxPoem", "Y", YPos);
#endif
+#endif
+#endif
}
// Load a poem from given file, at given point in file.