Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6e4c1501
Commit
6e4c1501
authored
Oct 07, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winefile: Cast-qual warnings fix.
parent
50e64908
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
winefile.c
programs/winefile/winefile.c
+4
-4
No files found.
programs/winefile/winefile.c
View file @
6e4c1501
...
@@ -3048,7 +3048,7 @@ static void calc_width(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTSTR str)
...
@@ -3048,7 +3048,7 @@ static void calc_width(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTSTR str)
{
{
RECT
rt
=
{
0
,
0
,
0
,
0
};
RECT
rt
=
{
0
,
0
,
0
,
0
};
DrawText
(
dis
->
hDC
,
(
LPTSTR
)
str
,
-
1
,
&
rt
,
DT_CALCRECT
|
DT_SINGLELINE
|
DT_NOPREFIX
);
DrawText
(
dis
->
hDC
,
str
,
-
1
,
&
rt
,
DT_CALCRECT
|
DT_SINGLELINE
|
DT_NOPREFIX
);
if
(
rt
.
right
>
pane
->
widths
[
col
])
if
(
rt
.
right
>
pane
->
widths
[
col
])
pane
->
widths
[
col
]
=
rt
.
right
;
pane
->
widths
[
col
]
=
rt
.
right
;
...
@@ -3061,7 +3061,7 @@ static void calc_tabbed_width(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTSTR
...
@@ -3061,7 +3061,7 @@ static void calc_tabbed_width(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTSTR
/* DRAWTEXTPARAMS dtp = {sizeof(DRAWTEXTPARAMS), 2};
/* DRAWTEXTPARAMS dtp = {sizeof(DRAWTEXTPARAMS), 2};
DrawTextEx(dis->hDC, (LPTSTR)str, -1, &rt, DT_CALCRECT|DT_SINGLELINE|DT_NOPREFIX|DT_EXPANDTABS|DT_TABSTOP, &dtp);*/
DrawTextEx(dis->hDC, (LPTSTR)str, -1, &rt, DT_CALCRECT|DT_SINGLELINE|DT_NOPREFIX|DT_EXPANDTABS|DT_TABSTOP, &dtp);*/
DrawText
(
dis
->
hDC
,
(
LPTSTR
)
str
,
-
1
,
&
rt
,
DT_CALCRECT
|
DT_SINGLELINE
|
DT_EXPANDTABS
|
DT_TABSTOP
|
(
2
<<
8
));
DrawText
(
dis
->
hDC
,
str
,
-
1
,
&
rt
,
DT_CALCRECT
|
DT_SINGLELINE
|
DT_EXPANDTABS
|
DT_TABSTOP
|
(
2
<<
8
));
/*FIXME rt (0,0) ??? */
/*FIXME rt (0,0) ??? */
if
(
rt
.
right
>
pane
->
widths
[
col
])
if
(
rt
.
right
>
pane
->
widths
[
col
])
...
@@ -3079,7 +3079,7 @@ static void output_text(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTSTR str,
...
@@ -3079,7 +3079,7 @@ static void output_text(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTSTR str,
rt
.
right
=
x
+
pane
->
positions
[
col
+
1
]
-
Globals
.
spaceSize
.
cx
;
rt
.
right
=
x
+
pane
->
positions
[
col
+
1
]
-
Globals
.
spaceSize
.
cx
;
rt
.
bottom
=
dis
->
rcItem
.
bottom
;
rt
.
bottom
=
dis
->
rcItem
.
bottom
;
DrawText
(
dis
->
hDC
,
(
LPTSTR
)
str
,
-
1
,
&
rt
,
DT_SINGLELINE
|
DT_NOPREFIX
|
flags
);
DrawText
(
dis
->
hDC
,
str
,
-
1
,
&
rt
,
DT_SINGLELINE
|
DT_NOPREFIX
|
flags
);
}
}
static
void
output_tabbed_text
(
Pane
*
pane
,
LPDRAWITEMSTRUCT
dis
,
int
col
,
LPCTSTR
str
)
static
void
output_tabbed_text
(
Pane
*
pane
,
LPDRAWITEMSTRUCT
dis
,
int
col
,
LPCTSTR
str
)
...
@@ -3095,7 +3095,7 @@ static void output_tabbed_text(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTST
...
@@ -3095,7 +3095,7 @@ static void output_tabbed_text(Pane* pane, LPDRAWITEMSTRUCT dis, int col, LPCTST
/* DRAWTEXTPARAMS dtp = {sizeof(DRAWTEXTPARAMS), 2};
/* DRAWTEXTPARAMS dtp = {sizeof(DRAWTEXTPARAMS), 2};
DrawTextEx(dis->hDC, (LPTSTR)str, -1, &rt, DT_SINGLELINE|DT_NOPREFIX|DT_EXPANDTABS|DT_TABSTOP, &dtp);*/
DrawTextEx(dis->hDC, (LPTSTR)str, -1, &rt, DT_SINGLELINE|DT_NOPREFIX|DT_EXPANDTABS|DT_TABSTOP, &dtp);*/
DrawText
(
dis
->
hDC
,
(
LPTSTR
)
str
,
-
1
,
&
rt
,
DT_SINGLELINE
|
DT_EXPANDTABS
|
DT_TABSTOP
|
(
2
<<
8
));
DrawText
(
dis
->
hDC
,
str
,
-
1
,
&
rt
,
DT_SINGLELINE
|
DT_EXPANDTABS
|
DT_TABSTOP
|
(
2
<<
8
));
}
}
static
void
output_number
(
Pane
*
pane
,
LPDRAWITEMSTRUCT
dis
,
int
col
,
LPCTSTR
str
)
static
void
output_number
(
Pane
*
pane
,
LPDRAWITEMSTRUCT
dis
,
int
col
,
LPCTSTR
str
)
...
...
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