Mercurial > hg > forks > multipaint-js
diff multipaint.pde @ 11:c1667eb54808
Cosmetics and indentation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Jul 2018 09:03:08 +0300 |
parents | dfdc18b62fab |
children | 1f6a84cbd42e |
line wrap: on
line diff
--- a/multipaint.pde Wed Jul 04 08:57:43 2018 +0300 +++ b/multipaint.pde Wed Jul 04 09:03:08 2018 +0300 @@ -306,6 +306,7 @@ message("Page|loaded"); } + void draw() { int msx, msy; @@ -355,6 +356,7 @@ if (g_tooltrigger == 1) { // comes from mousepressed, or mousedragged if (g_mx <= width - g_hedge && g_my <= height - g_vedge) do_tool(msx, msy, g_button); } + g_msx = mouseX; g_msy = mouseY; switcher(0); @@ -377,6 +379,7 @@ //magport(); switcher(1); update_ui(); + updatePixels(); if (g_msgctr > 0) g_msgctr--;