From b3c4ad768944207450086bb1544a612ca054d023 Mon Sep 17 00:00:00 2001 From: Delio Brignoli Date: Sat, 16 Sep 2017 18:11:06 +0100 Subject: [PATCH] ssd1306: fix pixel size constant in demo --- examples/board_ssd1306/ssd1306demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5