projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2003/09/19 05:26:47
[org.ibex.core.git]
/
src
/
org
/
xwt
/
Surface.java
diff --git
a/src/org/xwt/Surface.java
b/src/org/xwt/Surface.java
index
182558c
..
5f44098
100644
(file)
--- 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 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();
/** 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 */
// 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();
/** 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 */
static volatile boolean abort = false;
/** a solid red 10x10 double buffer */
- private DoubleBuffer showRenderBuf = null;
+ private PixelBuffer showRenderBuf = null;
/** a striped 100x100 double buffer */
/** a striped 100x100 double buffer */
- private DoubleBuffer showRenderBuf2 = null;
+ private PixelBuffer showRenderBuf2 = null;
/** true iff this window should be scarred */
private boolean scarred = true;
/** 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...
} 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();
root.dirty();
Refresh();
@@
-518,9
+518,9
@@
public abstract class Surface {
if (Main.showRenders) {
if (showRenderBuf == null) {
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);
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)
for(int y1 = 0; y1<100; y1++)
for(int x1 = 0; x1<100; x1++)
if ((x1 + y1) % 5 == 0)