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
b6babc16
Commit
b6babc16
authored
Oct 17, 2013
by
Claes Sjöfors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Glow buffer_background virtual function bugfix
parent
235be748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
xtt/lib/glow/src/glow_draw.h
xtt/lib/glow/src/glow_draw.h
+1
-1
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+2
-4
No files found.
xtt/lib/glow/src/glow_draw.h
View file @
b6babc16
...
...
@@ -137,7 +137,7 @@ class GlowDraw {
virtual
void
draw_background
(
GlowWind
*
wind
,
int
x
,
int
y
,
int
w
,
int
h
)
{}
virtual
int
create_buffer
(
GlowWind
*
w
)
{
return
1
;}
virtual
void
delete_buffer
(
GlowWind
*
w
)
{}
virtual
void
buffer_background
(
Glo
wWind
*
w
)
{}
virtual
void
buffer_background
(
Dra
wWind
*
w
)
{}
virtual
int
export_image
(
char
*
filename
)
{
return
1
;}
virtual
int
print
(
char
*
filename
,
double
x0
,
double
x1
,
int
end
)
{
return
1
;}
//virtual void set_clip( DrawWind *w, GC gc) {}
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
b6babc16
...
...
@@ -1116,7 +1116,6 @@ int GrowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
scale_x
=
(
x2
-
select_rect_stored_ll_x
)
/
(
select_rect_stored_ur_x
-
select_rect_stored_ll_x
);
scale_y
=
(
y2
-
select_rect_stored_ll_y
)
/
(
select_rect_stored_ur_y
-
select_rect_stored_ll_y
);
}
break
;
case
glow_eScaleType_Down
:
if
(
select_rect_start_y
==
select_rect_stored_ll_y
)
...
...
@@ -1190,7 +1189,7 @@ int GrowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
x2
=
select_rect_stored_ll_x
+
scale_x
*
(
select_rect_stored_ur_x
-
select_rect_stored_ll_x
);
y2
=
select_rect_stored_ur_y
;
break
;
if
(
grid_on
)
{
double
fx
,
fy
;
find_grid
(
(
double
)(
x2
+
mw
.
offset_x
)
/
mw
.
zoom_factor_x
,
...
...
@@ -1199,7 +1198,6 @@ int GrowCtx::event_handler( glow_eEvent event, int x, int y, int w, int h)
scale_x
=
(
x2
-
select_rect_stored_ll_x
)
/
(
select_rect_stored_ur_x
-
select_rect_stored_ll_x
);
}
break
;
case
glow_eScaleType_Right
:
if
(
select_rect_start_x
==
select_rect_stored_ur_x
)
return
1
;
...
...
@@ -2555,7 +2553,7 @@ void GrowCtx::draw( GlowWind *w, int ll_x, int ll_y, int ur_x, int ur_y)
if
(
redraw_callback
)
(
redraw_callback
)
(
redraw_data
);
if
(
w
->
double_buffer_on
())
gdraw
->
buffer_background
(
w
);
gdraw
->
buffer_background
(
w
->
window
);
for
(
i
=
0
;
i
<
a
.
a_size
;
i
++
)
{
if
(
a
.
a
[
i
]
->
type
()
==
glow_eObjectType_Con
)
a
.
a
[
i
]
->
draw
(
w
,
ll_x
,
ll_y
,
ur_x
,
ur_y
);
...
...
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