Commit 22fd508f authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

another attempt to fix #214. A gui object outside of the GOP area will still...

another attempt to fix #214. A gui object outside of the GOP area will still send graphical updates to the GUI.  This needs to be addressed on the C side, but for now this fix should work
parent 55a895eb
...@@ -2296,8 +2296,10 @@ function gui_bng_button_color(cid, tag, color) { ...@@ -2296,8 +2296,10 @@ function gui_bng_button_color(cid, tag, color) {
var button; var button;
if (patchwin[cid]) { if (patchwin[cid]) {
button = get_item(cid, tag + "button"); button = get_item(cid, tag + "button");
if (button) {
configure_item(button, { fill: color }); configure_item(button, { fill: color });
} }
}
} }
function gui_bng_configure(cid, tag, color, cx, cy, r) { function gui_bng_configure(cid, tag, color, cx, cy, r) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment