Commit Graph

18 Commits

Author SHA1 Message Date
Michael Bayne df50d9fb0d Only do the Windows copyArea() workaround on Windows because it crashes
the MacOS JVM (though the MacOS JVM has the same fricking bug, it's just
that the workaround doesn't "work").


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2534 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:49:57 +00:00
Michael Bayne e6126a4787 If FPS display is on, dirty it properly when the view scrolls.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 15:11:51 +00:00
Michael Bayne 1274fbb7c0 Let's inform the derived classes of the delta rather than the new _vbounds
upper left which is something they're already much more likely to be
making use of directly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 18:12:40 +00:00
Michael Bayne d5701962a3 The big fat bernie revamp! Er, big fat miso revamp rather:
- Combined SceneViewPanel and IsoSceneView into one happy panel.
- Ditched the DisplayMisoScene notion; the new MisoScenePanel now manages
  resolved scene information (like base, object and fringe tiles) itself
  so that it can...
- ...support scrolling scenes by keeping blocks of resolved base, fringe
  and object information loaded only for what is potentially visible
  rather than for the whole scene.

Other things were surely cleaned up or broken in the process to keep a
keen eye out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:21:17 +00:00
Michael Bayne a8c6d62913 Immediately update our scene location when we are requested to track a
pathable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 01:26:29 +00:00
Michael Bayne 3dbd1c77dd Maintain a view bounds rectangle and make it available to callers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-20 22:15:34 +00:00
Walter Korman d9f7ebc792 Busted a cap in the accidentally-left-in verbose logging that pissed me
off so much while I was sailing around.  Take that you little fucker!  How
do you like that, huh?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1867 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-30 09:34:08 +00:00
Michael Bayne 6b651c2f9c Don't request to dirty an invalid region if we scroll more than an entire
screen vertically, instead request to dirty one with zero height.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1862 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-30 00:27:37 +00:00
Michael Bayne ce424d616d Useful debugging info.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-16 23:34:55 +00:00
Walter Korman fa21a78242 Override setBounds() to capture resizing and movement rather than creating
a component listener.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-08 20:58:32 +00:00
Walter Korman c671f5a1c8 Update the panel's absolute screen coordinates whenever the component is
moved or resized, in addition to when it is laid out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-08 20:16:07 +00:00
Walter Korman 627ee5a1db Javadoc fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1557 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-02 23:15:53 +00:00
Michael Bayne 7562ba50f5 Fixed bug when rendering scrolling view (need to set the clip properly
before scrolling); added encloses pathable mode which is like follows
pathable except that the pathable is not tracked with the center of the
screen but instead their bounds are kept inside the visible area.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1506 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 07:49:44 +00:00
Michael Bayne b0ab364885 Zoiks! Ze bug!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1504 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 00:58:36 +00:00
Michael Bayne 8ca5fc3857 We need to ensure that dirty regions are constrained to the bounds of the
component in MediaPanel as well as VirtualMediaPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 07:41:37 +00:00
Michael Bayne 1ef85b78d8 Worked around the Windows copyArea() bug; yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1481 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 02:34:39 +00:00
Michael Bayne 30071e79c2 Lose the magic circle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 23:34:34 +00:00
Michael Bayne 7253a68c7c Death, taxes and refactoring: seriously revamped the low-level media code
to handle scrolling in a much cleaner and happier way. There's now a
VirtualMediaPanel which operates in virtual coordinates and can be made to
"view" any location in those virtual coordinates. By changing the view,
the view can be scrolled and the view can be made to center on a pathable
(generally a sprite) which will cause it to scroll around as the pathable
moves around in the virtual coordinate space.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1475 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:25:33 +00:00