diff --git a/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassView3D.m b/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassView3D.m --- a/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassView3D.m +++ b/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassView3D.m @@ -42,9 +42,10 @@ NSOpenGLPixelFormatAttribute attributes[] = { - NSOpenGLPFAAccelerated, + NSOpenGLPFAAccelerated, NSOpenGLPFAColorSize, 32, - NSOpenGLPFAAlphaSize, 8, + NSOpenGLPFAAlphaSize, 8, + NSOpenGLPFADoubleBuffer, NSOpenGLPFADepthSize, depthBits, // the following attrubite disabled to avoid "invalid share context" // NSOpenGLPFANoRecovery, diff --git a/glass-mat/src/com/sun/glass/events/ViewEvent.java b/glass-mat/src/com/sun/glass/events/ViewEvent.java --- a/glass-mat/src/com/sun/glass/events/ViewEvent.java +++ b/glass-mat/src/com/sun/glass/events/ViewEvent.java @@ -17,17 +17,39 @@ final static public int FULLSCREEN_ENTER = 441; final static public int FULLSCREEN_EXIT = 442; - static public String GetTypeString(int type) { + public static String getTypeString(int type) { String string = "UNKNOWN"; switch (type) { - case LOCKED: string = "LOCKED"; break; - case UNLOCKED: string = "UNLOCKED"; break; + case LOCKED: + string = "LOCKED"; + break; + case UNLOCKED: + string = "UNLOCKED"; + break; - case ADD: string = "ADD"; break; - case REMOVE: string = "REMOVE"; break; + case ADD: + string = "ADD"; + break; + case REMOVE: + string = "REMOVE"; + break; - case REPAINT: string = "REPAINT"; break; - case RESIZE: string = "RESIZE"; break; + case REPAINT: + string = "REPAINT"; + break; + case RESIZE: + string = "RESIZE"; + break; + case MOVE: + string = "MOVE"; + break; + + case FULLSCREEN_ENTER: + string = "FULLSCREEN_ENTER"; + break; + case FULLSCREEN_EXIT: + string = "FULLSCREEN_EXIT"; + break; } return string; }