Ticket #8021: 8021.patch
| File 8021.patch, 1.5 KB (added by , 13 years ago) |
|---|
-
core/src/org/openstreetmap/josm/tools/WindowGeometry.java
276 276 GraphicsDevice[] gs = ge.getScreenDevices(); 277 277 for (int j = 0; j < gs.length; j++) { 278 278 GraphicsDevice gd = gs[j]; 279 GraphicsConfiguration[] gc = gd.getConfigurations(); 280 for (int i = 0; i < gc.length; i++) { 281 virtualBounds = virtualBounds.union(gc[i].getBounds()); 279 if (gd.getType() == GraphicsDevice.TYPE_RASTER_SCREEN) { 280 virtualBounds = virtualBounds.union(gd.getDefaultConfiguration().getBounds()); 282 281 } 283 282 } 284 283 … … 315 314 Rectangle bounds = null; 316 315 for (int j = 0; j < gs.length; j++) { 317 316 GraphicsDevice gd = gs[j]; 318 GraphicsConfiguration[] gc = gd.getConfigurations(); 319 for (int i = 0; i < gc.length; i++) { 320 Rectangle b = gc[i].getBounds(); 321 if(b.width/b.height >= 3) /* multiscreen with wrong definition */ 317 if (gd.getType() == GraphicsDevice.TYPE_RASTER_SCREEN) { 318 Rectangle b = gd.getDefaultConfiguration().getBounds(); 319 if (b.height > 0 && b.width/b.height >= 3) /* multiscreen with wrong definition */ 322 320 { 323 321 b.width /= 2; 324 322 Rectangle is = b.intersection(g);
