Not sure if this is a big deal, but it can't hurt: our media panels
shouldn't be transparent so that repaints don't travel up past them. (Some were, but I think our repaint manager was keeping paints out of the parents anyway, somehow). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3663 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -95,6 +95,7 @@ public class MediaPanel extends JComponent
|
|||||||
{
|
{
|
||||||
// keep this for later
|
// keep this for later
|
||||||
_framemgr = framemgr;
|
_framemgr = framemgr;
|
||||||
|
setOpaque(true); // our repaints shouldn't cause other jcomponents to
|
||||||
|
|
||||||
// create our region manager
|
// create our region manager
|
||||||
_remgr = new RegionManager();
|
_remgr = new RegionManager();
|
||||||
@@ -388,6 +389,16 @@ public class MediaPanel extends JComponent
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void setOpaque (boolean opaque)
|
||||||
|
{
|
||||||
|
if (!opaque) {
|
||||||
|
Log.warning("Media panels shouldn't be setOpaque(false).");
|
||||||
|
Thread.dumpStack();
|
||||||
|
}
|
||||||
|
super.setOpaque(true);
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public void repaint (long tm, int x, int y, int width, int height)
|
public void repaint (long tm, int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user