Mercurial > mplayer.hg
changeset 6145:26cb8736927b
Gui and 64-bit issues patch from Gui and 64-bit issues
author | pontscho |
---|---|
date | Mon, 20 May 2002 13:39:23 +0000 |
parents | bcb7c2050104 |
children | b9651eb9749e |
files | Gui/bitmap.c Gui/bitmap/bitmap.c Gui/mplayer/menu.h Gui/mplayer/mw.h Gui/skin/font.c |
diffstat | 5 files changed, 23 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/bitmap.c Mon May 20 08:52:33 2002 +0000 +++ b/Gui/bitmap.c Mon May 20 13:39:23 2002 +0000 @@ -185,8 +185,8 @@ out->Image=(char *)calloc( 1,out->ImageSize ); if ( out->Image == NULL ) mp_msg( MSGT_GPLAYER,MSGL_STATUS,"nem van ram baze\n" ); { - int i,b,c=0; unsigned long * buf = NULL; unsigned char tmp = 0; int nothaveshape = 1; - buf=(unsigned long *)in->Image; + int i,b,c=0; unsigned int * buf = NULL; unsigned char tmp = 0; int nothaveshape = 1; + buf=(unsigned int *)in->Image; for ( b=0,i=0;i < (int)(out->Width * out->Height);i++ ) { if ( (int)buf[i] != adaptivlimit ) tmp=( tmp >> 1 )|128; @@ -209,8 +209,8 @@ mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[c32to1] imagesize: %d\n",out->ImageSize ); if ( (int)out->Image == NULL ) mp_msg( MSGT_GPLAYER,MSGL_STATUS,"nem van ram baze\n" ); { - int i,b,c=0; unsigned long * buf = NULL; unsigned char tmp = 0; - buf=(unsigned long *)out->Image; + int i,b,c=0; unsigned int * buf = NULL; unsigned char tmp = 0; + buf=(unsigned int *)out->Image; for ( c=0,i=0;i < (int)(in->Width * in->Height / 8);i++ ) { tmp=in->Image[i];
--- a/Gui/bitmap/bitmap.c Mon May 20 08:52:33 2002 +0000 +++ b/Gui/bitmap/bitmap.c Mon May 20 13:39:23 2002 +0000 @@ -185,8 +185,8 @@ out->Image=(char *)calloc( 1,out->ImageSize ); if ( out->Image == NULL ) mp_msg( MSGT_GPLAYER,MSGL_STATUS,"nem van ram baze\n" ); { - int i,b,c=0; unsigned long * buf = NULL; unsigned char tmp = 0; int nothaveshape = 1; - buf=(unsigned long *)in->Image; + int i,b,c=0; unsigned int * buf = NULL; unsigned char tmp = 0; int nothaveshape = 1; + buf=(unsigned int *)in->Image; for ( b=0,i=0;i < (int)(out->Width * out->Height);i++ ) { if ( (int)buf[i] != adaptivlimit ) tmp=( tmp >> 1 )|128; @@ -209,8 +209,8 @@ mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[c32to1] imagesize: %d\n",out->ImageSize ); if ( (int)out->Image == NULL ) mp_msg( MSGT_GPLAYER,MSGL_STATUS,"nem van ram baze\n" ); { - int i,b,c=0; unsigned long * buf = NULL; unsigned char tmp = 0; - buf=(unsigned long *)out->Image; + int i,b,c=0; unsigned int * buf = NULL; unsigned char tmp = 0; + buf=(unsigned int *)out->Image; for ( c=0,i=0;i < (int)(in->Width * in->Height / 8);i++ ) { tmp=in->Image[i];
--- a/Gui/mplayer/menu.h Mon May 20 08:52:33 2002 +0000 +++ b/Gui/mplayer/menu.h Mon May 20 13:39:23 2002 +0000 @@ -9,8 +9,8 @@ void mplMenuDraw( wsParamDisplay ) { - unsigned long * buf = NULL; - unsigned long * drw = NULL; + unsigned int * buf = NULL; + unsigned int * drw = NULL; int x,y,tmp; if ( !appMPlayer.menuBase.Bitmap.Image ) return; @@ -22,8 +22,8 @@ // --- if ( mplMenuItem != -1 ) { - buf=(unsigned long *)mplMenuDrawBuffer; - drw=(unsigned long *)appMPlayer.menuSelected.Bitmap.Image; + buf=(unsigned int *)mplMenuDrawBuffer; + drw=(unsigned int *)appMPlayer.menuSelected.Bitmap.Image; for ( y=appMPlayer.MenuItems[ mplMenuItem ].y; y < appMPlayer.MenuItems[ mplMenuItem ].y + appMPlayer.MenuItems[ mplMenuItem ].height; y++ ) for ( x=appMPlayer.MenuItems[ mplMenuItem ].x; x < appMPlayer.MenuItems[ mplMenuItem ].x + appMPlayer.MenuItems[ mplMenuItem ].width; x++ ) {
--- a/Gui/mplayer/mw.h Mon May 20 08:52:33 2002 +0000 +++ b/Gui/mplayer/mw.h Mon May 20 13:39:23 2002 +0000 @@ -122,15 +122,15 @@ inline void PutImage( txSample * bf,int x,int y,int max,int ofs ) { int i=0,ix,iy; - unsigned long * buf = NULL; - unsigned long * drw = NULL; - unsigned long tmp; + unsigned int * buf = NULL; + unsigned int * drw = NULL; + unsigned int tmp; if ( ( !bf )||( bf->Image == NULL ) ) return; i=( bf->Width * ( bf->Height / max ) ) * ofs; - buf=(unsigned long *)mplDrawBuffer; - drw=(unsigned long *)bf->Image; + buf=(unsigned int *)mplDrawBuffer; + drw=(unsigned int *)bf->Image; for ( iy=y;iy < (int)(y+bf->Height / max);iy++ ) for ( ix=x;ix < (int)(x+bf->Width);ix++ )
--- a/Gui/skin/font.c Mon May 20 08:52:33 2002 +0000 +++ b/Gui/skin/font.c Mon May 20 13:39:23 2002 +0000 @@ -124,8 +124,8 @@ txSample tmp2; char p[512]; va_list ap; - unsigned long * ibuf; - unsigned long * obuf; + unsigned int * ibuf; + unsigned int * obuf; int i,x,y; int oy = 0, ox = 0, dx = 0; @@ -144,8 +144,8 @@ tmp->ImageSize=tmp->Width * tmp->Height * 4; if ( ( tmp->Image=malloc( tmp->ImageSize ) ) == NULL ) return NULL; - obuf=(unsigned long *)tmp->Image; - ibuf=(unsigned long *)Fonts[id]->Bitmap.Image; + obuf=(unsigned int *)tmp->Image; + ibuf=(unsigned int *)Fonts[id]->Bitmap.Image; for ( i=0;i < (int)strlen( p );i++ ) { char c = p[i]; @@ -163,8 +163,8 @@ tmp2.ImageSize=sx * tmp->Height * 4; if ( ( tmp2.Image=malloc( tmp2.ImageSize ) ) == NULL ) { free( tmp->Image ); return NULL; } - obuf=(unsigned long *)tmp->Image; - ibuf=(unsigned long *)tmp2.Image; + obuf=(unsigned int *)tmp->Image; + ibuf=(unsigned int *)tmp2.Image; oy=0; for ( y=0;y < tmp->Height;y++ )