diff multipaint.pde @ 9:dfdc18b62fab

Change the help() function and its usage to have more than one parameter to deliver the cursor coordinates in a sane way.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jul 2018 08:55:48 +0300
parents c848a6133cfc
children c1667eb54808
line wrap: on
line diff
--- a/multipaint.pde	Wed Jul 04 08:51:19 2018 +0300
+++ b/multipaint.pde	Wed Jul 04 08:55:48 2018 +0300
@@ -332,10 +332,11 @@
     }
     if(depis)g_repanel=-2;
     */
-    if (moicon(16 * 16 * g_uizoom, height - 32 * g_uizoom, 16 * g_uizoom, 24 * g_uizoom)) help('<');
-    if (moicon(16 * 16 * g_uizoom, height - 8 * g_uizoom, 16 * g_uizoom, 8 * g_uizoom)) help('>');
+
+    if (moicon(16 * 16 * g_uizoom, height - 32 * g_uizoom, 16 * g_uizoom, 24 * g_uizoom)) help(int('<'));
+    if (moicon(16 * 16 * g_uizoom, height - 8 * g_uizoom, 16 * g_uizoom, 8 * g_uizoom)) help(int('>'));
     if (moicon(0, height - 32 * g_uizoom, 15 * 16 * g_uizoom, 32 * g_uizoom)) help(TAB);
-    if (moicon(width - 32 * g_uizoom, 0, 32 * g_uizoom, 16 * g_uizoom)) help('.');
+    if (moicon(width - 32 * g_uizoom, 0, 32 * g_uizoom, 16 * g_uizoom)) help(int('.'));
 
     if (g_data[int('m')] == 0 && g_data[int('M')] == 0) {
         msx = mouseX - g_windowx;