From b145737c61dd6dcd78db9156cc6ba43c2f57c144 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 1 Sep 2015 12:08:18 +0200 Subject: [PATCH] [ion/simulator] Proper sizing of the LCD --- ion/platform/simulator/init.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ion/platform/simulator/init.cpp b/ion/platform/simulator/init.cpp index c4a0419eb..0daa9a3c3 100644 --- a/ion/platform/simulator/init.cpp +++ b/ion/platform/simulator/init.cpp @@ -10,9 +10,11 @@ extern "C" { #include void ion_init() { - Fl_Window * window = new Fl_Window(360, 280); + Fl::visual(FL_RGB); + int margin = 10; + Fl_Window * window = new Fl_Window(ION_FRAMEBUFFER_WIDTH+2*margin, ION_FRAMEBUFFER_HEIGHT+2*margin); #if 1 - FltkLCD * lcd = new FltkLCD(20, 20, 320, 240); + FltkLCD * lcd = new FltkLCD(margin, margin, ION_FRAMEBUFFER_WIDTH, ION_FRAMEBUFFER_HEIGHT); assert(ION_FRAMEBUFFER_BITS_PER_PIXEL == 8); Platform.display = lcd; PlatformFramebuffer = lcd->m_framebuffer;