summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Screen.cpp')
-rw-r--r--nGenEx/Screen.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/nGenEx/Screen.cpp b/nGenEx/Screen.cpp
index 045c38d..39f5586 100644
--- a/nGenEx/Screen.cpp
+++ b/nGenEx/Screen.cpp
@@ -107,11 +107,12 @@ Screen::Resize(int w, int h)
ListIter<Window> iter = window_list;
while (++iter) {
Window* win = iter.value();
+ Rect tmprect = win->GetRect();
- double w_x = win->GetRect().x / (double) width;
- double w_y = win->GetRect().y / (double) height;
- double w_w = win->GetRect().w / (double) width;
- double w_h = win->GetRect().h / (double) height;
+ double w_x = tmprect.x / (double) width;
+ double w_y = tmprect.y / (double) height;
+ double w_w = tmprect.w / (double) width;
+ double w_h = tmprect.h / (double) height;
Rect r;