Author: richard
Date: Tue Feb 17 06:54:19 2009
New Revision: 4243

URL: http://svn.slimdevices.com/jive?rev=4243&view=rev
Log:
Bug: N/A
Description:
Fix the minimum tile size so that tiles are not drawn outside of the widgets 
bounding box.

Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c?rev=4243&r1=4242&r2=4243&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_tile.c Tue Feb 17 
06:54:19 2009
@@ -348,12 +348,14 @@
 #endif //JIVE_PROFILE_BLIT
        Uint16 mw, mh;
 
-       jive_tile_get_min_size(tile, &mw, &mh);
-       if (dw < mw) {
-               dw = mw;
-       }
-       if (dh < mh) {
-               dh = mh;
+       if (!dw || !dh) {
+               jive_tile_get_min_size(tile, &mw, &mh);
+               if (!dw) {
+                       dw = mw;
+               }
+               if (!dh) {
+                       dh = mh;
+               }
        }
 
        _blit_tile(tile, dst, dx, dy, dw, dh);

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to