Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
purr-data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aa
purr-data
Commits
5f46312d
Commit
5f46312d
authored
Nov 17, 2017
by
Jonathan Wilkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove gobj_shouldvis from glist_getcanvas, add check for scrollbar vis update
parent
4bd1b3a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
pd/src/g_canvas.c
pd/src/g_canvas.c
+2
-2
pd/src/g_graph.c
pd/src/g_graph.c
+5
-6
No files found.
pd/src/g_canvas.c
View file @
5f46312d
...
...
@@ -745,12 +745,12 @@ void canvas_scalar_event(t_canvas *x, t_symbol *s, int argc, t_atom *argv)
void
canvas_show_scrollbars
(
t_canvas
*
x
,
t_floatarg
f
)
{
x
->
gl_noscroll
=
(
int
)
f
;
gui_vmess
(
"gui_canvas_set_scrollbars"
,
"xi"
,
x
,
(
int
)
f
);
if
(
x
->
gl_mapped
)
gui_vmess
(
"gui_canvas_set_scrollbars"
,
"xi"
,
x
,
(
int
)
f
);
}
void
canvas_show_menu
(
t_canvas
*
x
,
t_floatarg
f
)
{
post
(
"setting nomenu to %d"
,
f
);
x
->
gl_nomenu
=
(
int
)
f
;
}
...
...
pd/src/g_graph.c
View file @
5f46312d
...
...
@@ -311,11 +311,11 @@ void glist_grab(t_glist *x, t_gobj *y, t_glistmotionfn motionfn,
t_canvas
*
glist_getcanvas
(
t_glist
*
x
)
{
//fprintf(stderr,"glist_getcanvas\n");
while
(
x
->
gl_owner
&&
!
x
->
gl_havewindow
&&
x
->
gl_isgraph
&&
gobj_shouldvis
(
&
x
->
gl_gobj
,
x
->
gl_owner
))
while
(
x
->
gl_owner
&&
!
x
->
gl_havewindow
&&
x
->
gl_isgraph
)
{
//fprintf(stderr,"x=%lx x->gl_owner=%d x->gl_havewindow=%d x->gl_isgraph=%d gobj_shouldvis=%d\n",
// x, (x->gl_owner ? 1:0), x->gl_havewindow, x->gl_isgraph,
//fprintf(stderr,"x=%lx x->gl_owner=%d x->gl_havewindow=%d "
// "x->gl_isgraph=%d gobj_shouldvis=%d\n",
// x, (x->gl_owner ? 1:0), x->gl_havewindow, x->gl_isgraph,
// gobj_shouldvis(&x->gl_gobj, x->gl_owner));
x
=
x
->
gl_owner
;
//fprintf(stderr,"+\n");
...
...
@@ -1244,7 +1244,6 @@ static void graph_getrect(t_gobj *z, t_glist *glist,
int
hadwindow
;
t_gobj
*
g
;
int
x21
,
y21
,
x22
,
y22
;
graph_graphrect
(
z
,
glist
,
&
x1
,
&
y1
,
&
x2
,
&
y2
);
//fprintf(stderr,"%d %d %d %d\n", x1, y1, x2, y2);
...
...
@@ -1435,7 +1434,7 @@ static void graph_select(t_gobj *z, t_glist *glist, int state)
}
if
(
glist_isvisible
(
glist
)
&&
(
glist_istoplevel
(
glist
)
||
gobj_shouldvis
(
x
,
glist
)))
gobj_shouldvis
(
z
,
glist
)))
{
if
(
state
)
gui_vmess
(
"gui_gobj_select"
,
"xs"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment