From: Delio Brignoli Date: Sat, 16 Sep 2017 17:11:06 +0000 (+0100) Subject: ssd1306: fix pixel size constant in demo X-Git-Tag: v1.6~11 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=b3c4ad768944207450086bb1544a612ca054d023;p=sx%2Fsimavr.git ssd1306: fix pixel size constant in demo --- diff --git a/examples/board_ssd1306/ssd1306demo.c b/examples/board_ssd1306/ssd1306demo.c index 99adbbb..5584a42 100644 --- a/examples/board_ssd1306/ssd1306demo.c +++ b/examples/board_ssd1306/ssd1306demo.c @@ -99,7 +99,7 @@ initGL (int w, int h, float pix_size) // Double buffered, RGB disp mode. glutInitDisplayMode (GLUT_RGB | GLUT_DOUBLE); - glutInitWindowSize (w * 4, h * 4); + glutInitWindowSize (w, h); window_identifier = glutCreateWindow ("SSD1306 128x64 OLED"); // Set up projection matrix @@ -163,7 +163,7 @@ main (int argc, char *argv[]) // Initialize GLUT system glutInit (&argc, argv); - initGL (ssd1306.columns, ssd1306.rows, 0.5); + initGL (ssd1306.columns, ssd1306.rows, 2.0); pthread_t run; pthread_create (&run, NULL, avr_run_thread, NULL);