summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/screen_xywh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx
index f8626fc3f..a0a18890e 100644
--- a/src/screen_xywh.cxx
+++ b/src/screen_xywh.cxx
@@ -358,7 +358,7 @@ int Fl::screen_num(int x, int y, int w, int h) {
int best_screen = 0;
float best_intersection = 0.;
for (int i = 0; i < Fl::screen_count(); i++) {
- int sx, sy, sw, sh;
+ int sx = 0, sy = 0, sw = 0, sh = 0;
Fl::screen_xywh(sx, sy, sw, sh, i);
float sintersection = fl_intersection(x, y, w, h, sx, sy, sw, sh);
if (sintersection > best_intersection) {