Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
3b0b6932
Commit
3b0b6932
authored
Jun 14, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Click sensitivity was to short, borderlimits was not updated
parent
dd536480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
xtt/lib/glow/src/glow_growmenu.cpp
xtt/lib/glow/src/glow_growmenu.cpp
+8
-1
No files found.
xtt/lib/glow/src/glow_growmenu.cpp
View file @
3b0b6932
...
@@ -160,6 +160,7 @@ void GrowMenu::draw( GlowTransform *t, int highlight, int hot, void *node, void
...
@@ -160,6 +160,7 @@ void GrowMenu::draw( GlowTransform *t, int highlight, int hot, void *node, void
ur_x
=
ll_x
+
int
(
min_width
*
ctx
->
zoom_factor_x
);
ur_x
=
ll_x
+
int
(
min_width
*
ctx
->
zoom_factor_x
);
ur_y
=
ll_y
+
int
(
tot_z_height
);
ur_y
=
ll_y
+
int
(
tot_z_height
);
ur
.
posit_z
(
ur_x
+
ctx
->
offset_x
,
ur_y
+
ctx
->
offset_y
);
ur
.
posit_z
(
ur_x
+
ctx
->
offset_x
,
ur_y
+
ctx
->
offset_y
);
get_node_borders
();
if
(
fill
)
{
if
(
fill
)
{
glow_draw_fill_rect
(
ctx
,
ll_x
,
ll_y
,
ur_x
-
ll_x
,
ur_y
-
ll_y
,
fill_drawtype
);
glow_draw_fill_rect
(
ctx
,
ll_x
,
ll_y
,
ur_x
-
ll_x
,
ur_y
-
ll_y
,
fill_drawtype
);
...
@@ -329,6 +330,7 @@ int GrowMenu::event_handler( glow_eEvent event, int x, int y, double fx,
...
@@ -329,6 +330,7 @@ int GrowMenu::event_handler( glow_eEvent event, int x, int y, double fx,
double
fy
)
double
fy
)
{
{
int
sts
;
int
sts
;
int
csts
;
double
rx
,
ry
;
double
rx
,
ry
;
...
@@ -393,11 +395,16 @@ int GrowMenu::event_handler( glow_eEvent event, int x, int y, double fx,
...
@@ -393,11 +395,16 @@ int GrowMenu::event_handler( glow_eEvent event, int x, int y, double fx,
}
}
break
;
break
;
}
}
case
glow_eEvent_MB1Down
:
glow_draw_set_click_sensitivity
(
ctx
,
glow_mSensitivity_MB1Click
);
break
;
case
glow_eEvent_MB1Click
:
{
case
glow_eEvent_MB1Click
:
{
sts
=
local_event_handler
(
event
,
rx
,
ry
);
sts
=
local_event_handler
(
event
,
rx
,
ry
);
if
(
sts
&&
current_item
!=
-
1
)
{
if
(
sts
&&
current_item
!=
-
1
)
{
if
(
info
.
item
[
current_item
].
type
==
glow_eMenuItem_Button
)
{
if
(
info
.
item
[
current_item
].
type
==
glow_eMenuItem_Button
)
{
((
GrowCtx
*
)
ctx
)
->
send_menu_callback
(
this
,
current_item
,
glow_eEvent_MenuActivated
,
fx
,
fy
);
csts
=
((
GrowCtx
*
)
ctx
)
->
send_menu_callback
(
this
,
current_item
,
glow_eEvent_MenuActivated
,
fx
,
fy
);
if
(
csts
==
GLOW__TERMINATED
)
return
csts
;
// Send delete callback for the root menu of this node
// Send delete callback for the root menu of this node
GrowMenu
*
e
;
GrowMenu
*
e
;
...
...
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