[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: java.awt.MediaTracker fix
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: java.awt.MediaTracker fix |
Date: |
Fri, 08 Apr 2005 20:25:37 +0200 |
Hi,
I commit the attached patch which fixes some things in MediaTracker,
namely:
1. the checkXXX methods with a ms argument should wait at maximum the
specified time. Before it waited until the image is loaded and checked
the time afterwards.
2. the flags must not be ORed together with MediaTracker.COMPLETE.
COMPLETE means 'successfully loaded' and this makes no sense to OR
together with ERRORED, and this is also not done in the reference impl.
2005-04-08 Roman Kennke <address@hidden>
* java/awt/MediaTracker.java
(MediaEntry.imageUpdate): Fixed flags. The different flags
must not be ORed together.
(checkAll): Modified to handle different meaning of the flags.
(waitForAll): Fixed so that it waits maximum the
specified amount of milliseconds.
(statusAll): Modified to handle different meaning of the flags.
(waitForID): Fixed so that it waits maximum the
specified amount of milliseconds.
/Roman
MediaTracker.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: java.awt.MediaTracker fix,
Roman Kennke <=