pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2828 - branches/pingus_sdl/src


From: jsalmon3
Subject: [Pingus-CVS] r2828 - branches/pingus_sdl/src
Date: Wed, 8 Aug 2007 08:23:00 +0200

Author: jsalmon3
Date: 2007-08-08 08:22:56 +0200 (Wed, 08 Aug 2007)
New Revision: 2828

Modified:
   branches/pingus_sdl/src/collision_mask.cpp
   branches/pingus_sdl/src/file_dialog_item.cpp
Log:
Initialize file_item.is_accessible, fixes bug clicking on directories

Modified: branches/pingus_sdl/src/collision_mask.cpp
===================================================================
--- branches/pingus_sdl/src/collision_mask.cpp  2007-08-08 04:55:27 UTC (rev 
2827)
+++ branches/pingus_sdl/src/collision_mask.cpp  2007-08-08 06:22:56 UTC (rev 
2828)
@@ -93,10 +93,10 @@
              res_desc.res_name.c_str(),
              int(surface->format->BitsPerPixel),
              int(surface->format->BytesPerPixel),
-             surface->format->Rmask,
-             surface->format->Gmask,
-             surface->format->Bmask,
-             surface->format->Amask);
+             (unsigned int)surface->format->Rmask,
+             (unsigned int)surface->format->Gmask,
+             (unsigned int)surface->format->Bmask,
+             (unsigned int)surface->format->Amask);
     }
 
   SDL_UnlockSurface(surface);

Modified: branches/pingus_sdl/src/file_dialog_item.cpp
===================================================================
--- branches/pingus_sdl/src/file_dialog_item.cpp        2007-08-08 04:55:27 UTC 
(rev 2827)
+++ branches/pingus_sdl/src/file_dialog_item.cpp        2007-08-08 06:22:56 UTC 
(rev 2828)
@@ -50,6 +50,7 @@
                // Load sprite based on file  (folder icon, level screenshot, 
or generic)
                if (file_item.is_directory)
                {
+                       file_item.is_accessible = true;
                        sprite = Resource::load_sprite("core/menu/folder");
                }
                else





reply via email to

[Prev in Thread] Current Thread [Next in Thread]