Commit 99aac8a6 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

gcc 4.0 warning fixes.

parent 07834655
...@@ -168,7 +168,7 @@ static XChar2b* X11DRV_unicode_to_char2b_sbcs( fontObject* pfo, ...@@ -168,7 +168,7 @@ static XChar2b* X11DRV_unicode_to_char2b_sbcs( fontObject* pfo,
{ {
XChar2b *str2b; XChar2b *str2b;
UINT i; UINT i;
BYTE *str; char *str;
UINT codepage = pfo->fi->codepage; UINT codepage = pfo->fi->codepage;
char ch = pfo->fs->default_char; char ch = pfo->fs->default_char;
...@@ -216,7 +216,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp932( fontObject* pfo, ...@@ -216,7 +216,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp932( fontObject* pfo,
{ {
XChar2b *str2b; XChar2b *str2b;
XChar2b *str2b_dst; XChar2b *str2b_dst;
BYTE *str; char *str;
BYTE *str_src; BYTE *str_src;
UINT i; UINT i;
char ch = pfo->fs->default_char; char ch = pfo->fs->default_char;
...@@ -232,7 +232,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp932( fontObject* pfo, ...@@ -232,7 +232,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp932( fontObject* pfo,
/* handle jisx0212.1990... */ /* handle jisx0212.1990... */
WideCharToMultiByte( 932, 0, lpwstr, count, str, count*2, &ch, NULL ); WideCharToMultiByte( 932, 0, lpwstr, count, str, count*2, &ch, NULL );
str_src = str; str_src = (BYTE*) str;
str2b_dst = str2b; str2b_dst = str2b;
for (i = 0; i < count; i++, str_src++, str2b_dst++) for (i = 0; i < count; i++, str_src++, str2b_dst++)
{ {
...@@ -259,7 +259,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp936( fontObject* pfo, ...@@ -259,7 +259,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp936( fontObject* pfo,
{ {
XChar2b *str2b; XChar2b *str2b;
XChar2b *str2b_dst; XChar2b *str2b_dst;
BYTE *str; char *str;
BYTE *str_src; BYTE *str_src;
UINT i; UINT i;
char ch = pfo->fs->default_char; char ch = pfo->fs->default_char;
...@@ -273,7 +273,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp936( fontObject* pfo, ...@@ -273,7 +273,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp936( fontObject* pfo,
} }
WideCharToMultiByte( 936, 0, lpwstr, count, str, count*2, &ch, NULL ); WideCharToMultiByte( 936, 0, lpwstr, count, str, count*2, &ch, NULL );
str_src = str; str_src = (BYTE*) str;
str2b_dst = str2b; str2b_dst = str2b;
for (i = 0; i < count; i++, str_src++, str2b_dst++) for (i = 0; i < count; i++, str_src++, str2b_dst++)
{ {
...@@ -300,7 +300,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp949( fontObject* pfo, ...@@ -300,7 +300,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp949( fontObject* pfo,
{ {
XChar2b *str2b; XChar2b *str2b;
XChar2b *str2b_dst; XChar2b *str2b_dst;
BYTE *str; char *str;
BYTE *str_src; BYTE *str_src;
UINT i; UINT i;
char ch = pfo->fs->default_char; char ch = pfo->fs->default_char;
...@@ -314,7 +314,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp949( fontObject* pfo, ...@@ -314,7 +314,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp949( fontObject* pfo,
} }
WideCharToMultiByte( 949, 0, lpwstr, count, str, count*2, &ch, NULL ); WideCharToMultiByte( 949, 0, lpwstr, count, str, count*2, &ch, NULL );
str_src = str; str_src = (BYTE*) str;
str2b_dst = str2b; str2b_dst = str2b;
for (i = 0; i < count; i++, str_src++, str2b_dst++) for (i = 0; i < count; i++, str_src++, str2b_dst++)
{ {
...@@ -342,7 +342,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo, ...@@ -342,7 +342,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo,
{ {
XChar2b *str2b; XChar2b *str2b;
XChar2b *str2b_dst; XChar2b *str2b_dst;
BYTE *str; char *str;
BYTE *str_src; BYTE *str_src;
UINT i; UINT i;
char ch = pfo->fs->default_char; char ch = pfo->fs->default_char;
...@@ -356,7 +356,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo, ...@@ -356,7 +356,7 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo,
} }
WideCharToMultiByte( 950, 0, lpwstr, count, str, count*2, &ch, NULL ); WideCharToMultiByte( 950, 0, lpwstr, count, str, count*2, &ch, NULL );
str_src = str; str_src = (BYTE*) str;
str2b_dst = str2b; str2b_dst = str2b;
for (i = 0; i < count; i++, str_src++, str2b_dst++) for (i = 0; i < count; i++, str_src++, str2b_dst++)
{ {
......
...@@ -1459,7 +1459,7 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits, ...@@ -1459,7 +1459,7 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
if (lines && width && (bmpImage->bits_per_pixel == 16) && if (lines && width && (bmpImage->bits_per_pixel == 16) &&
(ImageByteOrder(gdi_display)==LSBFirst) ) (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? */ /* FIXME: Does this really handle all these cases correctly? */
/* ==== pal 8 dib -> rgb or bgr 555 or 565 bmp ==== */ /* ==== pal 8 dib -> rgb or bgr 555 or 565 bmp ==== */
for (h = lines ; h--; ) { for (h = lines ; h--; ) {
...@@ -1494,7 +1494,7 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits, ...@@ -1494,7 +1494,7 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
if (lines && width && (bmpImage->bits_per_pixel == 32) && if (lines && width && (bmpImage->bits_per_pixel == 32) &&
(ImageByteOrder(gdi_display)==LSBFirst) ) (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? */ /* FIXME: Does this really handle both cases correctly? */
/* ==== pal 8 dib -> rgb or bgr 0888 bmp ==== */ /* ==== pal 8 dib -> rgb or bgr 0888 bmp ==== */
for (h = lines ; h--; ) { for (h = lines ; h--; ) {
...@@ -2434,7 +2434,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits, ...@@ -2434,7 +2434,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits,
rDst=rDst << 16; rDst=rDst << 16;
gDst=gDst << 16; gDst=gDst << 16;
bDst=bDst << 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++) { for (h=0; h<lines; h++) {
srcpixel=srcbits; srcpixel=srcbits;
dstpixel=(LPWORD)dstbits; dstpixel=(LPWORD)dstbits;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment