Community
Participate
Working Groups
In SWT, when the advanced graphics system is turn off ( GC#setAdvanced( false) ), the alpha is reset to its initial value 255. Test case: public void testResetAlphaAfterUsingSetAdvanced() { Display display = new Display(); GC gc = new GC( display, SWT.NONE ); gc.setAlpha( 64 ); assertEquals( 64, gc.getAlpha() ); assertTrue( gc.getAdvanced() ); gc.setAdvanced( false ); assertEquals( 255, gc.getAlpha() ); }
Alpha is reset to 255 in GC#setAdvanced. Changes are in CVS HEAD.