Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
a76edbdc
Commit
a76edbdc
authored
11 years ago
by
Ivica Bukvic
Browse files
Options
Downloads
Patches
Plain Diff
fixed failure to reposition after applying dialog settings
parent
ef7f6e48
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/g_numbox.c
+8
-8
8 additions, 8 deletions
pd/src/g_numbox.c
with
8 additions
and
8 deletions
pd/src/g_numbox.c
+
8
−
8
View file @
a76edbdc
...
@@ -862,7 +862,6 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
...
@@ -862,7 +862,6 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
t_atom
*
argv
)
t_atom
*
argv
)
{
{
canvas_apply_setundo
(
x
->
x_gui
.
x_glist
,
(
t_gobj
*
)
x
);
canvas_apply_setundo
(
x
->
x_gui
.
x_glist
,
(
t_gobj
*
)
x
);
int
need_to_redraw
=
0
;
t_symbol
*
srl
[
3
];
t_symbol
*
srl
[
3
];
int
w
=
(
int
)
atom_getintarg
(
0
,
argc
,
argv
);
int
w
=
(
int
)
atom_getintarg
(
0
,
argc
,
argv
);
...
@@ -873,7 +872,6 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
...
@@ -873,7 +872,6 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
int
log_height
=
(
int
)
atom_getintarg
(
6
,
argc
,
argv
);
int
log_height
=
(
int
)
atom_getintarg
(
6
,
argc
,
argv
);
if
(
argc
>
17
)
{
if
(
argc
>
17
)
{
x
->
x_hide_frame
=
(
int
)
atom_getintarg
(
18
,
argc
,
argv
);
x
->
x_hide_frame
=
(
int
)
atom_getintarg
(
18
,
argc
,
argv
);
need_to_redraw
=
1
;
}
}
int
sr_flags
;
int
sr_flags
;
...
@@ -893,17 +891,17 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
...
@@ -893,17 +891,17 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
/*if(my_numbox_check_minmax(x, min, max))
/*if(my_numbox_check_minmax(x, min, max))
my_numbox_bang(x);*/
my_numbox_bang(x);*/
my_numbox_check_minmax
(
x
,
min
,
max
);
my_numbox_check_minmax
(
x
,
min
,
max
);
if
(
need_to_redraw
)
{
//
if (need_to_redraw) {
(
*
x
->
x_gui
.
x_draw
)(
x
,
x
->
x_gui
.
x_glist
,
IEM_GUI_DRAW_MODE_ERASE
);
(
*
x
->
x_gui
.
x_draw
)(
x
,
x
->
x_gui
.
x_glist
,
IEM_GUI_DRAW_MODE_ERASE
);
//(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_NEW);
//(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_NEW);
iemgui_shouldvis
((
void
*
)
x
,
&
x
->
x_gui
,
IEM_GUI_DRAW_MODE_NEW
);
iemgui_shouldvis
((
void
*
)
x
,
&
x
->
x_gui
,
IEM_GUI_DRAW_MODE_NEW
);
}
else
{
/*
} else {
(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_UPDATE);
(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_UPDATE);
(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_IO + sr_flags);
(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_IO + sr_flags);
//(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_CONFIG);
//(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_CONFIG);
//(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_MOVE);
//(*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_MOVE);
iemgui_shouldvis((void *)x, &x->x_gui, IEM_GUI_DRAW_MODE_MOVE);
iemgui_shouldvis((void *)x, &x->x_gui, IEM_GUI_DRAW_MODE_MOVE);
}
}
*/
canvas_fixlinesfor
(
glist_getcanvas
(
x
->
x_gui
.
x_glist
),
(
t_text
*
)
x
);
canvas_fixlinesfor
(
glist_getcanvas
(
x
->
x_gui
.
x_glist
),
(
t_text
*
)
x
);
...
@@ -912,6 +910,8 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
...
@@ -912,6 +910,8 @@ static void my_numbox_dialog(t_my_numbox *x, t_symbol *s, int argc,
my_numbox_draw_select
(
x
,
x
->
x_gui
.
x_glist
);
my_numbox_draw_select
(
x
,
x
->
x_gui
.
x_glist
);
}
}
canvas_restore_original_position
(
x
->
x_gui
.
x_glist
,
(
t_gobj
*
)
x
,
iem_get_tag
(
x
->
x_gui
.
x_glist
,
(
t_iemgui
*
)
x
),
-
1
);
//ico@bukvic.net 100518 update scrollbars when object potentially exceeds window size
//ico@bukvic.net 100518 update scrollbars when object potentially exceeds window size
t_canvas
*
canvas
=
(
t_canvas
*
)
glist_getcanvas
(
x
->
x_gui
.
x_glist
);
t_canvas
*
canvas
=
(
t_canvas
*
)
glist_getcanvas
(
x
->
x_gui
.
x_glist
);
sys_vgui
(
"pdtk_canvas_getscroll .x%lx.c
\n
"
,
(
long
unsigned
int
)
canvas
);
sys_vgui
(
"pdtk_canvas_getscroll .x%lx.c
\n
"
,
(
long
unsigned
int
)
canvas
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment