Commit Graph

19 Commits

Author SHA1 Message Date
Michael Bayne 055bd6a642 Factored out the flip-buffer versus volatile image back-buffer code into
start-time selectable implementations. Modified back buffer to use
BufferCapabilities.FlipContents.COPIED which should do what we need in
terms of providing us with the current frame's contents on which to paint.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2468 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-26 17:56:26 +00:00
Michael Bayne 1942314cc1 Log our validations when debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2372 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-02 03:59:17 +00:00
Michael Bayne b66e0d2584 Keep track of whether or not anything was painted each frame and avoid the
extra effort of copying the back buffer to the screen if nothing actually
changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2322 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 19:06:54 +00:00
Walter Korman 100739bff5 Removed font hackery now that we've understood and fixed the "font bug",
which turned out to be due to improper restoring of the anti-aliasing
setting in graphics contexts.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2045 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-09 05:00:48 +00:00
Ray Greenwell 6a2cc6a16f optimize common case of having no dirty rectangles
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1902 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 18:52:11 +00:00
Michael Bayne b69e92c992 The joy of Swing. We have to refuse to acknowlege JScrollPane instances as
validate roots because when their children are invalidated, it causes the
entire hierarchy to be invalidated, which we then must revalidate lest
they live the rest of their mortal lives as invalids.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1900 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-05 05:49:31 +00:00
Michael Bayne 107273fce3 More debug logging for future debuggers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1798 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-10 00:09:07 +00:00
Michael Bayne 521cb7358e Ignore JTextField's spurious claims to be a validate root.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1793 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-09 02:35:20 +00:00
Michael Bayne 615383483b Revised use of deprecated methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 19:01:08 +00:00
Walter Korman ffb030d40a Added temporary hack workaround to keep text input fields from rendering
themselves with an incorrect font.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-23 03:52:23 +00:00
Michael Bayne 9bffbc0b18 Stuck a final fork (I hope) in the repaint problems associated with popups
and other layered components.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1541 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-25 01:43:29 +00:00
Walter Korman 7a9946e0ad Catch and report any exceptions thrown by Component.paint() to allow
peacable continued frame painting in cases where a component gets in a bad
way and fails to paint itself happily.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-10 21:31:56 +00:00
Michael Bayne 33eb11b8f6 Fixed yet another bug with the Swing rendering code: apparently the
JEditorPane, when displaying HTML that contains forms, pointlessly wraps
its Swing components in heavy weight AWT components which would otherwise
trigger some funny business that we don't want it to trigger.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1332 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-04 05:13:54 +00:00
Michael Bayne d43442b3dd Changed debug logging so that it is easier to enable and disable since I
seem to be debugging the fucking rendering every other day. Fixed bug with
dirty region combining.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1331 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-04 03:09:46 +00:00
Michael Bayne 4da9a66c1d Fixed more repaint bugs. We weren't properly painting the opaque component
when doing old-skool rendering. We also needed to climb up the hierarchy
looking to see if a parent is dirty for each dirty component and combine
the child and parent dirty rects and only repaint the parent otherwise we
can run into problems with render order. Oh the complexity (though Swing
does this too).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1328 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-03 04:14:20 +00:00
Michael Bayne 116ce388ca Need to translate to the coordinates of the opaque parent we're
repainting, not necessarily the original component we're repainting.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1305 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 19:12:00 +00:00
Michael Bayne b9af18d10e We need to paint the first opaque parent of a dirty component rather than
the dirty component directly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1304 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 18:59:55 +00:00
Michael Bayne 3713cf1034 More repaint manager fixes. We're now behaving even more closely like
Swing would behave.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1296 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 02:33:14 +00:00
Michael Bayne cc6a9d00ef Major low-level rendering rethink. There will be much follow-on cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 01:16:28 +00:00