Another small problem : switching windows :P

I’m back, :stuck_out_tongue: and this time looking for some small advice on how to best resolve this problem.
When i switch between fullscreen and windowed mode, no matter what i do, there’s a quick flash. or sometimes not so quick. i tried showwindow ->exit fullscreen -> hidefullscreenwindow and exitfullscreen -> hidefullscreenwindow -> showwindow both gave the same thing.

but this time, i brought video, since well, an image speaks a thousand words :stuck_out_tongue: http://owwsnap.com/java.swf

EDIT: Correct swf uploaded now

Is your display mode in FS mode different from the desktop’s?

Dmitri

nope, i disabled the resolution change because of the problem on linux oses with it.

we also on one particulair machine with an ATI Express X1200 card on it. we get random direct3d failures.

most of the time, it just stops there. leaves a black screen. an example

[I] DDraw::CreateDDPrimarySurface: back-buffers=0
[V] DDSetupDevice: successfully created primary surface
[V] DDSetupDevice: successfully setup ddraw device
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[E] DDRestoreSurface failure: DDERR_WRONGMODE
[E] Win32OSSD_restoreSurface: problems restoring, throwing IPE
[I] DDSetupDevice
[I] DDraw::CreateDDPrimarySurface: back-buffers=1
[E] DXObject::CreateSurface: DirectDraw Error: DDERR_NOEXCLUSIVEMODE
[E] DDraw::CreateDDPrimarySurface: CreateSurface failed: DirectDraw Error: DDERR
_NOEXCLUSIVEMODE

By not hiding the first frame at all, JRockit doesn’t show the desktop anymore, but 1.6u10 b11 does, but briefly, i’ve determined that the flash seems to be because the app’s main color is black, the switch from black fullscreen exclusivemode to a fullscreen sized frame produces a flash because the frame seems to be created and shown with the gray background and then filled black by setBackground. atleast that’s what i think… doing a setBackground on the frame before i show it reduces the flash’s intensity alot, but it’s still there a bit.

But this not from 6u10, it’s from earlier jdk. Does it happen with 6u10?

Dmitri

I have no clue, i didn’t have the newest build with me, so i couldn’t test that. i’ll have to stop by them to test it.