summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-20 13:39:23 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-20 13:39:23 +0000
commitc7b919a1b9ed2ae2137cf12b996d6f0c0ff88ba4 (patch)
tree6069aeb0e3c3e2452dcb98c6b638318405022200 /Gui
parentfb6a3dbf6cce110f17bd2eaa6d1ef3e98a454f95 (diff)
downloadmpv-c7b919a1b9ed2ae2137cf12b996d6f0c0ff88ba4.tar.bz2
mpv-c7b919a1b9ed2ae2137cf12b996d6f0c0ff88ba4.tar.xz
Gui and 64-bit issues patch from Gui and 64-bit issues
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6146 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/bitmap.c8
-rw-r--r--Gui/bitmap/bitmap.c8
-rw-r--r--Gui/mplayer/menu.h8
-rw-r--r--Gui/mplayer/mw.h10
-rw-r--r--Gui/skin/font.c12
5 files changed, 23 insertions, 23 deletions
diff --git a/Gui/bitmap.c b/Gui/bitmap.c
index 25df75c80f..8e9c06a0c5 100644
--- a/Gui/bitmap.c
+++ b/Gui/bitmap.c
@@ -185,8 +185,8 @@ void Convert32to1( txSample * in,txSample * out,int adaptivlimit )
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 @@ void Convert1to32( txSample * in,txSample * out )
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];
diff --git a/Gui/bitmap/bitmap.c b/Gui/bitmap/bitmap.c
index 25df75c80f..8e9c06a0c5 100644
--- a/Gui/bitmap/bitmap.c
+++ b/Gui/bitmap/bitmap.c
@@ -185,8 +185,8 @@ void Convert32to1( txSample * in,txSample * out,int adaptivlimit )
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 @@ void Convert1to32( txSample * in,txSample * out )
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];
diff --git a/Gui/mplayer/menu.h b/Gui/mplayer/menu.h
index 58a97bf469..5de6fda590 100644
--- a/Gui/mplayer/menu.h
+++ b/Gui/mplayer/menu.h
@@ -9,8 +9,8 @@ void mplHideMenu( int mx,int my,int w );
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 @@ void mplMenuDraw( wsParamDisplay )
// ---
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++ )
{
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h
index b78fb30685..f9541e3bbb 100644
--- a/Gui/mplayer/mw.h
+++ b/Gui/mplayer/mw.h
@@ -122,15 +122,15 @@ calclengthmmmmss:
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++ )
diff --git a/Gui/skin/font.c b/Gui/skin/font.c
index eb904c5f1a..bace086e4a 100644
--- a/Gui/skin/font.c
+++ b/Gui/skin/font.c
@@ -124,8 +124,8 @@ txSample * fntRender( int id,int px,int sx,char * fmt,... )
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 @@ txSample * fntRender( int id,int px,int sx,char * fmt,... )
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 @@ txSample * fntRender( int id,int px,int sx,char * fmt,... )
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++ )