X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=blobdiff_plain;f=modules%2Fgui%2Fskins%2Fx11%2Fx11_bitmap.cpp;h=f41974cf8637a60f598488a8798702626b3dce78;hp=5d6d37651b53d5ea92041b403ddd83eff9152f1d;hb=f70356eba39fd486092bb8df6ef61f0ae577ecad;hpb=58fe5c23b32388da6ab3f909fe4140ecacde34cf diff --git a/modules/gui/skins/x11/x11_bitmap.cpp b/modules/gui/skins/x11/x11_bitmap.cpp index 5d6d37651b..f41974cf86 100644 --- a/modules/gui/skins/x11/x11_bitmap.cpp +++ b/modules/gui/skins/x11/x11_bitmap.cpp @@ -2,7 +2,7 @@ * x11_bitmap.cpp: X11 implementation of the Bitmap class ***************************************************************************** * Copyright (C) 2003 VideoLAN - * $Id: x11_bitmap.cpp,v 1.5 2003/05/19 21:39:34 asmax Exp $ + * $Id: x11_bitmap.cpp,v 1.6 2003/05/24 21:28:29 asmax Exp $ * * Authors: Cyril Deguet * Emmanuel Puig @@ -135,13 +135,12 @@ void X11Bitmap::DrawBitmap( int x, int y, int w, int h, int xRef, int yRef, //--------------------------------------------------------------------------- bool X11Bitmap::Hit( int x, int y) { -// unsigned int c = (unsigned int)GetBmpPixel( x, y ); + unsigned int c = (unsigned int)GetBmpPixel( x, y ); -/* if( c == -1 || c == AlphaColor ) + if( c == -1 || c == AlphaColor ) return false; else - return true;*/ - return true; + return true; } //--------------------------------------------------------------------------- int X11Bitmap::GetBmpPixel( int x, int y ) @@ -149,6 +148,7 @@ int X11Bitmap::GetBmpPixel( int x, int y ) if( !Bmp || x < 0 || x >= Width || y < 0 || y >= Height ) return -1; + return 42; /* guchar *pixels; int rowstride, offset; gboolean has_alpha;