Support turbo2.
[vuplus_dvbapp] / lib / gdi / erect.h
index d95b8c0..35ebeda 100644 (file)
@@ -119,6 +119,8 @@ public:
        static eRect emptyRect() { return eRect(0, 0, 0, 0); }
        static eRect invalidRect() { return eRect(); }
        
+       void scale(int x_n, int x_d, int y_n, int y_d);
+       
 private:
        int x1;
        int y1;
@@ -143,7 +145,7 @@ inline eRect::eRect( int left, int top, int width, int height )
 }
 
 inline bool eRect::empty() const
-{ return x1 == x2 || y1 == y2; }
+{ return x1 >= x2 || y1 >= y2; }
 
 inline bool eRect::valid() const
 { return x1 <= x2 && y1 <= y2; }