Skip to content
Snippets Groups Projects
Commit 185fd284 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed regression where g_mycanvas does not resize its select area when the...

*fixed regression where g_mycanvas does not resize its select area when the mycanvas size is smaller than the select area
parent 2b1cb8d6
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,18 @@ static void my_canvas__clickhook(t_scalehandle *sh, int newstate)
x->x_vis_h += sh->h_dragy;
canvas_dirty(x->x_gui.x_glist, 1);
}
// if select area is larger tahn the visible arae
// make select area match that of the dragged one
// so that we don't have to go into properties to
// manually adjust this
if (x->x_vis_w < x->x_gui.x_w)
x->x_gui.x_w = x->x_vis_w;
if (x->x_vis_h < x->x_gui.x_h)
x->x_gui.x_h = x->x_vis_h;
if (x->x_gui.x_w < x->x_gui.x_h)
x->x_gui.x_h = x->x_gui.x_w;
else
x->x_gui.x_w = x->x_gui.x_h;
if (glist_isvisible(x->x_gui.x_glist))
{
my_canvas_draw_move(x, x->x_gui.x_glist);
......
C:
*messages should be aware of $0?
*g_mycanvas does not resize its select area when the mycanvas size is smaller than the select area
*verbosity level for the console
*Draw SECONDARY redrect on gop scalar patchers to reflect the viewport?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment