X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fxwt%2FSurface.java;h=5f44098026fed93b3820bacf118881da62773912;hp=182558c992dc3d752d3dbc43d62729ef0c104824;hb=c6069948906645d974f46bdb96617a9a6a504636;hpb=cf3587e2fd5966b7ebfd721d9413674224d1ad2a diff --git a/src/org/xwt/Surface.java b/src/org/xwt/Surface.java index 182558c..5f44098 100644 --- a/src/org/xwt/Surface.java +++ b/src/org/xwt/Surface.java @@ -127,7 +127,7 @@ public abstract class Surface { public abstract void setIcon(Picture i); /** copies a region from the doublebuffer to this surface */ - public abstract void blit(DoubleBuffer source, int sx, int sy, int dx, int dy, int dx2, int dy2); + public abstract void blit(PixelBuffer source, int sx, int sy, int dx, int dy, int dx2, int dy2); /** Destroy the surface */ public abstract void _dispose(); @@ -305,7 +305,7 @@ public abstract class Surface { // Private Instance Data ///////////////////////////////////////////////////////////////////////////////////////////// /** The automatic double buffer for the root box */ - DoubleBuffer backbuffer = null; + PixelBuffer backbuffer = null; /** Dirty regions on the backbuffer which need to be rebuilt using Box.render() */ private DirtyList backbufferDirtyRegions = new DirtyList(); @@ -320,10 +320,10 @@ public abstract class Surface { static volatile boolean abort = false; /** a solid red 10x10 double buffer */ - private DoubleBuffer showRenderBuf = null; + private PixelBuffer showRenderBuf = null; /** a striped 100x100 double buffer */ - private DoubleBuffer showRenderBuf2 = null; + private PixelBuffer showRenderBuf2 = null; /** true iff this window should be scarred */ private boolean scarred = true; @@ -399,7 +399,7 @@ public abstract class Surface { } while(abort); // this is a bit dangerous since we're passing ourselves to another method before subclasses' ctors have run... - backbuffer = Platform.createDoubleBuffer(Platform.getScreenWidth(), Platform.getScreenHeight(), this); + backbuffer = Platform.createPixelBuffer(Platform.getScreenWidth(), Platform.getScreenHeight(), this); root.dirty(); Refresh(); @@ -518,9 +518,9 @@ public abstract class Surface { if (Main.showRenders) { if (showRenderBuf == null) { - showRenderBuf = Platform.createDoubleBuffer(10, 10, this); + showRenderBuf = Platform.createPixelBuffer(10, 10, this); showRenderBuf.fillRect(0, 0, 10, 10, 0x00FF0000); - showRenderBuf2 = Platform.createDoubleBuffer(100, 100, this); + showRenderBuf2 = Platform.createPixelBuffer(100, 100, this); for(int y1 = 0; y1<100; y1++) for(int x1 = 0; x1<100; x1++) if ((x1 + y1) % 5 == 0)