[Mplayer-cvslog] CVS: main/Gui/bitmap bitmap.c,1.5,1.6

Zoltan Ponekker pontscho at mplayerhq.hu
Mon May 20 15:39:25 CEST 2002


Update of /cvsroot/mplayer/main/Gui/bitmap
In directory mail:/var/tmp.root/cvs-serv30588/Gui/bitmap

Modified Files:
	bitmap.c 
Log Message:
Gui and 64-bit issues patch from Gui and 64-bit issues

Index: bitmap.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/bitmap/bitmap.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bitmap.c	12 May 2002 01:09:10 -0000	1.5
+++ bitmap.c	20 May 2002 13:39:15 -0000	1.6
@@ -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];




More information about the MPlayer-cvslog mailing list