comparison src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java @ 500:6609174beafe

fix subencoding
author oshiro
date Sun, 17 Feb 2019 17:55:25 +0900
parents 126b84644ca7
children
comparison
equal deleted inserted replaced
499:5455c62a3775 500:6609174beafe
991 991
992 private int getThisScreenNumber(ArrayList<FbRectangle> rectangles) { 992 private int getThisScreenNumber(ArrayList<FbRectangle> rectangles) {
993 // find which screen we are on 993 // find which screen we are on
994 Point thisScreenLocation = frame.getLocation(); 994 Point thisScreenLocation = frame.getLocation();
995 Point mouse = frame.getMousePosition(); 995 Point mouse = frame.getMousePosition();
996 System.out.println("finding this screeen number " + thisScreenLocation + " mouse " + mouse + " on screen 0 " + rectangles.get(0)) ; 996 System.out.println("finding this screen number " + thisScreenLocation + " mouse " + mouse + " on screen 0 " + rectangles.get(0)) ;
997 int thisScreenNumber = 0; 997 int thisScreenNumber = 0;
998 for(Rectangle rect : rectangles) { 998 for(Rectangle rect : rectangles) {
999 if ( rect.contains(thisScreenLocation) ) return thisScreenNumber; 999 if ( rect.contains(thisScreenLocation) ) return thisScreenNumber;
1000 thisScreenNumber++; 1000 thisScreenNumber++;
1001 } 1001 }