Commit 33abefef authored by ROOL's avatar ROOL 🤖
Browse files

Open popup menus in Style Guide approved place

Detail:
  In the create sprite dialogue the menus for colour/palette didn't open in the right place. Compute the offset as the Style Guide recommends.
Admin:
  Submission for the Paint bounty.
parent 6ac43b06
......@@ -2631,8 +2631,8 @@ static menu calculate_menu_position(menu mn, wimp_mousestr *m)
wimp_get_wind_info((wimp_winfo *)((uintptr_t)&winfo | 1 /* No icons */));
wimp_get_wind_state(m->w, &state);
x = (state.o.x + state.o.box.x0 + icon.box.x1 + 50) - (winfo.info.scx * 2);
y = -state.o.y + state.o.box.y1 + icon.box.y1 - 4;
x = (state.o.x + state.o.box.x0 + icon.box.x1 + 64) - (winfo.info.scx * 2);
y = -state.o.y + state.o.box.y1 + icon.box.y1;
if (e->data.but.m.x != x || e->data.but.m.y != y)
{ e->data.but.m.x = x;
e->data.but.m.y = y;
......
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