mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Applied jguiscale() to tooltip location.
This commit is contained in:
parent
0046f35bfa
commit
d6c4e07f8e
@ -112,8 +112,8 @@ static bool tip_hook(JWidget widget, JMessage msg)
|
|||||||
Frame* window = new TipWindow(tip->text, true);
|
Frame* window = new TipWindow(tip->text, true);
|
||||||
/* int x = tip->widget->rc->x1; */
|
/* int x = tip->widget->rc->x1; */
|
||||||
/* int y = tip->widget->rc->y2; */
|
/* int y = tip->widget->rc->y2; */
|
||||||
int x = jmouse_x(0)+12;
|
int x = jmouse_x(0)+12*jguiscale();
|
||||||
int y = jmouse_y(0)+12;
|
int y = jmouse_y(0)+12*jguiscale();
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|
||||||
tip->window = window;
|
tip->window = window;
|
||||||
@ -124,7 +124,7 @@ static bool tip_hook(JWidget widget, JMessage msg)
|
|||||||
h = jrect_h(window->rc);
|
h = jrect_h(window->rc);
|
||||||
|
|
||||||
if (x+w > JI_SCREEN_W) {
|
if (x+w > JI_SCREEN_W) {
|
||||||
x = jmouse_x(0) - w - 4;
|
x = jmouse_x(0) - w - 4*jguiscale();
|
||||||
y = jmouse_y(0);
|
y = jmouse_y(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user