diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-24 18:55:14 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-06-24 18:55:14 +0000 |
commit | 88a7e24d44695f49e1250a9314f03bf4c6e1cff8 (patch) | |
tree | b02bac4b5735ede954eb48e0a2cfbead900f1fa5 /nGenEx/Screen.cpp | |
parent | 05f1b225a03adeab4cda01a6c96595359464ac0e (diff) | |
download | starshatter-5.1.87.zip starshatter-5.1.87.tar.gz starshatter-5.1.87.tar.bz2 |
A few PVS studio things5.1.87
Diffstat (limited to 'nGenEx/Screen.cpp')
-rw-r--r-- | nGenEx/Screen.cpp | 9 |
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;
|