Add handling of call before the screen layout has been computed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
984fcbaefc
commit
05d60bd29d
@ -127,6 +127,7 @@ int Fl_Screen_Driver::screen_num(int x, int y, int w, int h)
|
||||
{
|
||||
int best_screen = 0;
|
||||
float best_intersection = 0.;
|
||||
if (num_screens < 0) init();
|
||||
for (int i = 0; i < num_screens; i++) {
|
||||
int sx = 0, sy = 0, sw = 0, sh = 0;
|
||||
screen_xywh(sx, sy, sw, sh, i);
|
||||
|
Loading…
Reference in New Issue
Block a user