diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-06-03 14:49:58 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-06-03 14:57:54 +0200 |
| commit | ee359c263a2c534db6a94601f1d7906cdd9f04c7 (patch) | |
| tree | b9a233884075b742060fc86146a6185de0dfd643 /lib/gdi/region.cpp | |
| parent | 6bffe6f0ce6b00d792787c91cd609b72748287ae (diff) | |
| download | enigma2-ee359c263a2c534db6a94601f1d7906cdd9f04c7.tar.gz enigma2-ee359c263a2c534db6a94601f1d7906cdd9f04c7.zip | |
allow scale rects, regions
Diffstat (limited to 'lib/gdi/region.cpp')
| -rw-r--r-- | lib/gdi/region.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gdi/region.cpp b/lib/gdi/region.cpp index bbad3aa0..1208c97e 100644 --- a/lib/gdi/region.cpp +++ b/lib/gdi/region.cpp @@ -426,3 +426,10 @@ void gRegion::moveBy(ePoint offset) rects[i].moveBy(offset); } +void gRegion::scale(int x_n, int x_d, int y_n, int y_d) +{ + int i; + for (i=0; i<rects.size(); ++i) + rects[i].scale(x_n, x_d, y_n, y_d); +} + |
