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
99aac8a6
Commit
99aac8a6
authored
Aug 15, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.0 warning fixes.
parent
07834655
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
codepage.c
dlls/x11drv/codepage.c
+9
-9
dib.c
dlls/x11drv/dib.c
+3
-3
No files found.
dlls/x11drv/codepage.c
View file @
99aac8a6
...
...
@@ -168,7 +168,7 @@ static XChar2b* X11DRV_unicode_to_char2b_sbcs( fontObject* pfo,
{
XChar2b
*
str2b
;
UINT
i
;
BYTE
*
str
;
char
*
str
;
UINT
codepage
=
pfo
->
fi
->
codepage
;
char
ch
=
pfo
->
fs
->
default_char
;
...
...
@@ -216,7 +216,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp932( fontObject* pfo,
{
XChar2b
*
str2b
;
XChar2b
*
str2b_dst
;
BYTE
*
str
;
char
*
str
;
BYTE
*
str_src
;
UINT
i
;
char
ch
=
pfo
->
fs
->
default_char
;
...
...
@@ -232,7 +232,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp932( fontObject* pfo,
/* handle jisx0212.1990... */
WideCharToMultiByte
(
932
,
0
,
lpwstr
,
count
,
str
,
count
*
2
,
&
ch
,
NULL
);
str_src
=
str
;
str_src
=
(
BYTE
*
)
str
;
str2b_dst
=
str2b
;
for
(
i
=
0
;
i
<
count
;
i
++
,
str_src
++
,
str2b_dst
++
)
{
...
...
@@ -259,7 +259,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp936( fontObject* pfo,
{
XChar2b
*
str2b
;
XChar2b
*
str2b_dst
;
BYTE
*
str
;
char
*
str
;
BYTE
*
str_src
;
UINT
i
;
char
ch
=
pfo
->
fs
->
default_char
;
...
...
@@ -273,7 +273,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp936( fontObject* pfo,
}
WideCharToMultiByte
(
936
,
0
,
lpwstr
,
count
,
str
,
count
*
2
,
&
ch
,
NULL
);
str_src
=
str
;
str_src
=
(
BYTE
*
)
str
;
str2b_dst
=
str2b
;
for
(
i
=
0
;
i
<
count
;
i
++
,
str_src
++
,
str2b_dst
++
)
{
...
...
@@ -300,7 +300,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp949( fontObject* pfo,
{
XChar2b
*
str2b
;
XChar2b
*
str2b_dst
;
BYTE
*
str
;
char
*
str
;
BYTE
*
str_src
;
UINT
i
;
char
ch
=
pfo
->
fs
->
default_char
;
...
...
@@ -314,7 +314,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp949( fontObject* pfo,
}
WideCharToMultiByte
(
949
,
0
,
lpwstr
,
count
,
str
,
count
*
2
,
&
ch
,
NULL
);
str_src
=
str
;
str_src
=
(
BYTE
*
)
str
;
str2b_dst
=
str2b
;
for
(
i
=
0
;
i
<
count
;
i
++
,
str_src
++
,
str2b_dst
++
)
{
...
...
@@ -342,7 +342,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo,
{
XChar2b
*
str2b
;
XChar2b
*
str2b_dst
;
BYTE
*
str
;
char
*
str
;
BYTE
*
str_src
;
UINT
i
;
char
ch
=
pfo
->
fs
->
default_char
;
...
...
@@ -356,7 +356,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo,
}
WideCharToMultiByte
(
950
,
0
,
lpwstr
,
count
,
str
,
count
*
2
,
&
ch
,
NULL
);
str_src
=
str
;
str_src
=
(
BYTE
*
)
str
;
str2b_dst
=
str2b
;
for
(
i
=
0
;
i
<
count
;
i
++
,
str_src
++
,
str2b_dst
++
)
{
...
...
dlls/x11drv/dib.c
View file @
99aac8a6
...
...
@@ -1459,7 +1459,7 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
if
(
lines
&&
width
&&
(
bmpImage
->
bits_per_pixel
==
16
)
&&
(
ImageByteOrder
(
gdi_display
)
==
LSBFirst
)
)
{
dstbits
=
bmpImage
->
data
+
left
*
2
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
dstbits
=
(
BYTE
*
)
bmpImage
->
data
+
left
*
2
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
/* FIXME: Does this really handle all these cases correctly? */
/* ==== pal 8 dib -> rgb or bgr 555 or 565 bmp ==== */
for
(
h
=
lines
;
h
--
;
)
{
...
...
@@ -1494,7 +1494,7 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
if
(
lines
&&
width
&&
(
bmpImage
->
bits_per_pixel
==
32
)
&&
(
ImageByteOrder
(
gdi_display
)
==
LSBFirst
)
)
{
dstbits
=
bmpImage
->
data
+
left
*
4
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
dstbits
=
(
BYTE
*
)
bmpImage
->
data
+
left
*
4
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
/* FIXME: Does this really handle both cases correctly? */
/* ==== pal 8 dib -> rgb or bgr 0888 bmp ==== */
for
(
h
=
lines
;
h
--
;
)
{
...
...
@@ -2434,7 +2434,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits,
rDst
=
rDst
<<
16
;
gDst
=
gDst
<<
16
;
bDst
=
bDst
<<
16
;
srcbits
=
bmpImage
->
data
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
srcbits
=
(
BYTE
*
)
bmpImage
->
data
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
for
(
h
=
0
;
h
<
lines
;
h
++
)
{
srcpixel
=
srcbits
;
dstpixel
=
(
LPWORD
)
dstbits
;
...
...
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