]> git.karo-electronics.de Git - oswald.git/blobdiff - ui/oswald-ui.c
Some minor improvements.
[oswald.git] / ui / oswald-ui.c
index 9d7e57581786022feba8e2401a99cf6268c71208..74d567623639739196deec588bf1c99278a9126d 100644 (file)
 
 static oswald_ui *ui_g;
 
-void hal_lcd_set_pixel(gint x, gint y, gboolean state)
+void hal_lcd_set_pixel(gint x, gint y, uint8_t state)
 {
        gint ix, iy;
 
        ix = x*2;
        iy = y*2;
 
+       // we double all pixel to get a bigger picture
        gdk_draw_point(GDK_DRAWABLE(ui_g->pixmap), state ? ui_g->darea->style->black_gc : ui_g->darea->style->white_gc, ix, iy);
        gdk_draw_point(GDK_DRAWABLE(ui_g->pixmap), state ? ui_g->darea->style->black_gc : ui_g->darea->style->white_gc, ix+1, iy);
        gdk_draw_point(GDK_DRAWABLE(ui_g->pixmap), state ? ui_g->darea->style->black_gc : ui_g->darea->style->white_gc, ix, iy+1);