Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : Eterm

Dir     : eterm/Eterm/src


Modified Files:
        pixmap.c 


Log Message:
Sun Dec 21 21:43:58 2003                        Michael Jennings (mej)

Fix :hscale and :vscale to work properly.

===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/pixmap.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -3 -r1.100 -r1.101
--- pixmap.c    28 Oct 2003 02:42:53 -0000      1.100
+++ pixmap.c    22 Dec 2003 02:44:36 -0000      1.101
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: pixmap.c,v 1.100 2003/10/28 02:42:53 mej Exp $";
+static const char cvs_ident[] = "$Id: pixmap.c,v 1.101 2003/12/22 02:44:36 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -1166,6 +1166,12 @@
                 xscaled = (unsigned short) ((xsize * x_ratio) * ((float) w / 100.0));
                 yscaled = (unsigned short) ((ysize * x_ratio) * ((float) h / 100.0));
             } else {
+                if (!w && BITFIELD_IS_SET(simg->pmap->op, OP_HSCALE)) {
+                    w = 100;
+                }
+                if (!h && BITFIELD_IS_SET(simg->pmap->op, OP_VSCALE)) {
+                    h = 100;
+                }
                 if (w > 0) {
                     xscaled = width * ((float) w / 100.0);
                 } else {




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to