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
c321169a
Commit
c321169a
authored
Dec 15, 2008
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Text extent fix was wrong
parent
069611a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
xtt/lib/flow/motif/flow_draw_xlib.cpp
xtt/lib/flow/motif/flow_draw_xlib.cpp
+2
-2
xtt/lib/flow/motif/flow_draw_xlib.h
xtt/lib/flow/motif/flow_draw_xlib.h
+3
-3
No files found.
xtt/lib/flow/motif/flow_draw_xlib.cpp
View file @
c321169a
...
...
@@ -1455,8 +1455,8 @@ void FlowDrawXLib::set_nav_cursor( FlowCtx *ctx, draw_eCursor cursor)
}
int
FlowDrawXLib
::
get_text_extent
(
FlowCtx
*
ctx
,
const
char
*
text
,
int
len
,
flow_eDrawType
gc_type
,
int
idx
,
double
size
,
int
*
width
,
int
*
height
)
flow_eDrawType
gc_type
,
int
idx
,
int
*
width
,
int
*
height
,
double
size
)
{
int
direction
,
ascent
,
descent
;
XCharStruct
char_struct
;
...
...
xtt/lib/flow/motif/flow_draw_xlib.h
View file @
c321169a
...
...
@@ -139,7 +139,7 @@ class FlowDrawXLib : public FlowDraw {
flow_eDrawType
gc_type
,
int
idx
,
int
line
,
double
size
);
int
text_inverse
(
FlowCtx
*
ctx
,
int
x
,
int
y
,
char
*
text
,
int
len
,
flow_eDrawType
gc_type
,
int
idx
,
int
line
,
double
size
)
{
text_erase
(
ctx
,
x
,
y
,
text
,
len
,
gc_type
,
idx
,
line
,
size
);}
{
return
text_erase
(
ctx
,
x
,
y
,
text
,
len
,
gc_type
,
idx
,
line
,
size
);}
int
nav_text
(
FlowCtx
*
ctx
,
int
x
,
int
y
,
char
*
text
,
int
len
,
flow_eDrawType
gc_type
,
int
idx
,
int
highlight
,
int
line
,
double
size
);
int
nav_text_erase
(
FlowCtx
*
ctx
,
int
x
,
int
y
,
char
*
text
,
int
len
,
...
...
@@ -168,8 +168,8 @@ class FlowDrawXLib : public FlowDraw {
void
set_cursor
(
FlowCtx
*
ctx
,
draw_eCursor
cursor
);
void
set_nav_cursor
(
FlowCtx
*
ctx
,
draw_eCursor
cursor
);
int
get_text_extent
(
FlowCtx
*
ctx
,
const
char
*
text
,
int
len
,
flow_eDrawType
gc_type
,
int
idx
,
double
size
,
int
*
width
,
int
*
height
);
flow_eDrawType
gc_type
,
int
idx
,
int
*
width
,
int
*
height
,
double
size
);
void
copy_area
(
FlowCtx
*
ctx
,
int
x
,
int
y
);
void
clear_area
(
FlowCtx
*
ctx
,
int
ll_x
,
int
ur_x
,
int
ll_y
,
int
ur_y
);
int
create_input
(
FlowCtx
*
ctx
,
int
x
,
int
y
,
char
*
text
,
int
len
,
...
...
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