Fix: invalid characters on windows simulator #240

This commit is contained in:
ydupas
2017-12-05 22:10:54 +01:00
committed by Ecco
parent e1ca053a1e
commit 8741e4d116
2 changed files with 7 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ void init_platform() {
Fl_Window * window = new Fl_Window(screen_width+2*margin, margin+screen_height+margin+keyboard_height+margin);
#if defined(_WIN32) || defined(_WIN64)
Fl::set_font(FL_SYMBOL, "Arial Unicode MS");
#endif
KDColor * pixels = (KDColor *)malloc(Ion::Display::Width*Ion::Display::Height*sizeof(KDColor));
sFrameBuffer = new KDFrameBuffer(pixels, KDSize(Ion::Display::Width, Ion::Display::Height));
/*

View File

@@ -38,6 +38,9 @@ FltkKbd::FltkKbd(int x, int y, int w, int h) : Fl_Group(x, y, w, h) {
key_width,
key_height,
kCharForKey[k]);
#if defined(_WIN32) || defined(_WIN64)
m_buttons[k]->labelfont(FL_SYMBOL);
#endif
if (kCharForKey[k][0] == '\0') {
m_buttons[k]->deactivate();
}