[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Boxygen-gtk/1=2E0=5D_src=3A_Fixed_bug_on_passing_pix?=
From:       Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date:       2011-01-31 21:51:55
Message-ID: 20110131215155.C9F7AA609B () git ! kde ! org
[Download RAW message or body]

Git commit 1f14d289dc7ffe2a55d51f5b687494e954c47d4d by Hugo Pereira Da Costa.
Pushed by hpereiradacosta into branch '1.0'.

Fixed bug on passing pixmaps dimensions to surfaces in TileSet constructors

Was likely harmless since all the pixbuf we pass to TileSet are square.

M  +2    -2    src/oxygentileset.cpp     

http://commits.kde.org/d1a86b4e/1f14d289dc7ffe2a55d51f5b687494e954c47d4d

diff --git a/src/oxygentileset.cpp b/src/oxygentileset.cpp
index 3f03d07..ee74da0 100644
--- a/src/oxygentileset.cpp
+++ b/src/oxygentileset.cpp
@@ -45,7 +45,7 @@ namespace Oxygen
         if( !pix ) return;
 
         const int sw( gdk_pixbuf_get_width( pix ) );
-        const int sh( gdk_pixbuf_get_width( pix ) );
+        const int sh( gdk_pixbuf_get_height( pix ) );
 
         // create surface from pixbuf
         Cairo::Surface surface( cairo_image_surface_create( CAIRO_FORMAT_ARGB32, sw, sh ) );
@@ -87,7 +87,7 @@ namespace Oxygen
         if( !pix ) return;
 
         const int sw( gdk_pixbuf_get_width( pix ) );
-        const int sh( gdk_pixbuf_get_width( pix ) );
+        const int sh( gdk_pixbuf_get_height( pix ) );
 
         // create surface from pixbuf
         Cairo::Surface surface( cairo_image_surface_create( CAIRO_FORMAT_ARGB32 , sw, sh ) );

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic