From: Pierre-Luc P. <pa...@us...> - 2004-02-12 20:23:06
|
Update of /cvsroot/gallery/gallery_remote/com/gallery/GalleryRemote/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28119/com/gallery/GalleryRemote/util Modified Files: DialogUtil.java Log Message: 2004-02-12 Pierre-Luc Paour <ga...@pa...> (1.3.1-b2) * Fixed slideshow on the Mac (the top of the image was obscured by the menu bar). I can't figure out why the Mac VM will not go into full-screen mode... * Fixed a potential VM killer bug with going into slideshow mode. Index: DialogUtil.java =================================================================== RCS file: /cvsroot/gallery/gallery_remote/com/gallery/GalleryRemote/util/DialogUtil.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- DialogUtil.java 23 Jan 2004 02:43:00 -0000 1.6 +++ DialogUtil.java 12 Feb 2004 20:17:56 -0000 1.7 @@ -1,5 +1,7 @@ package com.gallery.GalleryRemote.util; +import com.gallery.GalleryRemote.GalleryRemote; + import java.awt.*; /** @@ -40,6 +42,12 @@ public static void maxSize(Window window) { Rectangle sr = window.getGraphicsConfiguration().getBounds(); + if (GalleryRemote.IS_MAC_OS_X) { + // leave room for the menu bar + sr.y += 22; + sr.height -= 22; + } + window.setBounds(sr); } |