Added canvas_fill(rgba) and a 50% black fill bound to the 'c' key.

This commit is contained in:
Marcel Hellkamp 2018-03-29 18:39:37 +02:00
parent 0090f518e9
commit c651046e3f
3 changed files with 11 additions and 0 deletions

View file

@ -114,6 +114,8 @@ void px_on_key(int key, int scancode, int mods) {
canvas_fullscreen(-1);
} else if (key == 301) { // F12
canvas_fullscreen(canvas_get_display() + 1);
} else if (key == 67) { // c
canvas_fill(0x00000088);
} else if (key == 81 || key == 256) { // q or ESC
canvas_close();
}