my old powerbook helped me to found another gfx artefacts with mouse
wow!
This commit is contained in:
parent
2f72ede39f
commit
7982d7117a
|
@ -612,7 +612,7 @@ void el_update(int n)
|
||||||
x = o->x;
|
x = o->x;
|
||||||
y = o->y;
|
y = o->y;
|
||||||
el_size(n, &w, &h);
|
el_size(n, &w, &h);
|
||||||
game_cursor(1);
|
game_cursor(2);
|
||||||
gfx_update(x, y, w, h);
|
gfx_update(x, y, w, h);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -793,7 +793,7 @@ void game_menu_box(int show, const char *txt)
|
||||||
// el_update(el_menu_button);
|
// el_update(el_menu_button);
|
||||||
|
|
||||||
if (!show) {
|
if (!show) {
|
||||||
game_cursor(1);
|
game_cursor(2);
|
||||||
gfx_flip();
|
gfx_flip();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -831,7 +831,7 @@ void game_menu_box(int show, const char *txt)
|
||||||
gfx_draw(menu, mx, my);
|
gfx_draw(menu, mx, my);
|
||||||
el_set(el_menu, elt_layout, /*game_theme.win_x*/ x, y, lay);
|
el_set(el_menu, elt_layout, /*game_theme.win_x*/ x, y, lay);
|
||||||
el_draw(el_menu);
|
el_draw(el_menu);
|
||||||
game_cursor(1);
|
game_cursor(2);
|
||||||
gfx_flip();
|
gfx_flip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1146,6 +1146,7 @@ int game_cmd(char *cmd)
|
||||||
// input_clear();
|
// input_clear();
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
game_cursor(2);
|
||||||
gfx_flip();
|
gfx_flip();
|
||||||
// input_clear();
|
// input_clear();
|
||||||
err:
|
err:
|
||||||
|
@ -1488,8 +1489,10 @@ void game_cursor(int on)
|
||||||
// yc += h/2;
|
// yc += h/2;
|
||||||
grab = gfx_grab_screen(xc, yc, gfx_img_w(cur), gfx_img_h(cur));
|
grab = gfx_grab_screen(xc, yc, gfx_img_w(cur), gfx_img_h(cur));
|
||||||
gfx_draw(cur, xc, yc);
|
gfx_draw(cur, xc, yc);
|
||||||
|
if (on != 2) {
|
||||||
gfx_update(xc, yc, gfx_img_w(cur), gfx_img_h(cur));
|
gfx_update(xc, yc, gfx_img_w(cur), gfx_img_h(cur));
|
||||||
gfx_update(ox, oy, ow, oh);
|
gfx_update(ox, oy, ow, oh);
|
||||||
|
}
|
||||||
ow = gfx_img_w(cur);
|
ow = gfx_img_w(cur);
|
||||||
oh = gfx_img_h(cur);
|
oh = gfx_img_h(cur);
|
||||||
} while (0);
|
} while (0);
|
||||||
|
@ -1738,7 +1741,6 @@ static int select_ref(int prev, int last)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!xref)
|
if (!xref)
|
||||||
xref = get_nearest_xref(elem->id, x, y);
|
xref = get_nearest_xref(elem->id, x, y);
|
||||||
if (!xref)
|
if (!xref)
|
||||||
|
|
|
@ -52,7 +52,7 @@ extern char *game_cfg_path(void);
|
||||||
extern char *game_save_path(int rc, int nr);
|
extern char *game_save_path(int rc, int nr);
|
||||||
|
|
||||||
extern char *game_locale(void);
|
extern char *game_locale(void);
|
||||||
extern void game_cursor(int on); /* must be called with -1 before gfx change and 1 after */
|
extern void game_cursor(int on); /* must be called with -1 before gfx change and 1 after, 2 - not update */
|
||||||
|
|
||||||
struct game {
|
struct game {
|
||||||
char *path;
|
char *path;
|
||||||
|
|
|
@ -1552,7 +1552,7 @@ xref_t txt_box_xrefs(textbox_t tbox)
|
||||||
struct line *line;
|
struct line *line;
|
||||||
|
|
||||||
for (line = box->line; line; line = line->next) {
|
for (line = box->line; line; line = line->next) {
|
||||||
if (line->y + line->h < box->off)
|
if (line->y < box->off)
|
||||||
continue; /* too high */
|
continue; /* too high */
|
||||||
if (line->y + line->h > box->h + box->off)
|
if (line->y + line->h > box->h + box->off)
|
||||||
break; /* bottom */
|
break; /* bottom */
|
||||||
|
|
Reference in a new issue