Jerome,

Assuming you're running on win32 (where fullscreen is fully
implemented through ddraw, and not emulated by awt)

You might try calling sync() on the Toolkit:
        Toolkit.getDefaultToolkit().sync()

This ensures that ddraw and gdi have flushed their commands
prior to returning.

Also, current jdk1.4 builds tend to go through contortions when
going into and out of fullscreen mode (you may notice the
display mode changing a couple of times during the process).
This has been simplified in our internal builds (which
should be available soon, or by Beta2 at the latest).  That
might be the source of your problem/solution...

Chet.


"Blouin, Jerome" wrote:
>
> Hi!
>
> When changing the display mode in fullscreen exclusive mode, is there a way
> to know when this operation has completed? I ask it because when I change
> the display mode it takes a few seconds or less to execute.
>
> This is important for me because I should wait that the display is in the
> expected mode before starting to perform animations otherwise many frames
> will not be shown.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to