Mercurial > hg > forks > multipaint-js
diff multipaint.pde @ 182:55a3fee48fe1
Implement UI resolution changer.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Aug 2018 14:10:22 +0300 |
parents | 934934bb1fbb |
children | 1cb7ecd73554 |
line wrap: on
line diff
--- a/multipaint.pde Thu Aug 23 13:36:15 2018 +0300 +++ b/multipaint.pde Thu Aug 23 14:10:22 2018 +0300 @@ -63,7 +63,8 @@ int g_tooltrigger, g_prevtool, g_rband, g_rbang, g_boxreconstruct, g_charlimit, g_animx, g_animy, g_animframes, g_animno, g_animtime, - g_animspeed, g_keymacpos, g_forced_width, g_forced_height; + g_animspeed, g_keymacpos, g_forced_width, g_forced_height, + g_hadjust, g_vadjust; int g_wheelup = int(':'), g_wheeldown = int(';'), g_middlebutton = int(','); int g_gridmode = GRIDMODE_OLD; @@ -108,6 +109,8 @@ // Get settings from Javascript runner, or use defaults g_machine = (mpMachine >= 0) ? mpMachine : C64; g_uizoom = (mpUIZoom >= 1 && mpUIZoom <= 3) ? mpUIZoom : 2; + g_forced_width = mpForcedWidth > 0 ? mpForcedWidth : 0; + g_forced_height = mpForcedHeight > 0 ? mpForcedHeight : 0; g_animspeed = 1; //normi