projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disabled old-style dirty buffer handling in Surface.java
[org.ibex.core.git]
/
src
/
org
/
ibex
/
graphics
/
Surface.java
diff --git
a/src/org/ibex/graphics/Surface.java
b/src/org/ibex/graphics/Surface.java
index
f891b29
..
b27fa61
100644
(file)
--- a/
src/org/ibex/graphics/Surface.java
+++ b/
src/org/ibex/graphics/Surface.java
@@
-280,7
+280,7
@@
public abstract class Surface implements Callable {
} while(abort);
int[][] dirt = dirtyRegions.flush();
} while(abort);
int[][] dirt = dirtyRegions.flush();
-
+ /*
for(int i = 0; dirt != null && i < dirt.length; i++) {
if (dirt[i] == null) continue;
int x = dirt[i][0], y = dirt[i][1], w = dirt[i][2], h = dirt[i][3];
for(int i = 0; dirt != null && i < dirt.length; i++) {
if (dirt[i] == null) continue;
int x = dirt[i][0], y = dirt[i][1], w = dirt[i][2], h = dirt[i][3];
@@
-289,9
+289,11
@@
public abstract class Surface implements Callable {
if (x+w > root.width) w = root.width - x;
if (y+h > root.height) h = root.height - y;
if (w <= 0 || h <= 0) continue;
if (x+w > root.width) w = root.width - x;
if (y+h > root.height) h = root.height - y;
if (w <= 0 || h <= 0) continue;
-
+ */
// FIXME: set clip to -- x, y, x + w, y + h,
// FIXME: set clip to -- x, y, x + w, y + h,
- root.render(this.getPixelBuffer(), identity);
+ System.out.println("paint");
+ root.render(this.getPixelBuffer(), identity, null);
+ /*
//getPixelBuffer().drawPicture(scarImage, 0, root.height - scarImage.height, x, y, x+w, y+h);
if (abort) {
//getPixelBuffer().drawPicture(scarImage, 0, root.height - scarImage.height, x, y, x+w, y+h);
if (abort) {
@@
-304,6
+306,7
@@
public abstract class Surface implements Callable {
return;
}
}
return;
}
}
+ */
unrendered = false;
}
unrendered = false;
}
@@
-380,11
+383,11
@@
public abstract class Surface implements Callable {
public void drawGlyph(Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int argb, int bc) {
}
*/
public void drawGlyph(Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int argb, int bc) {
}
*/
- public void stroke(Polygon p, int color) {
+ public void stroke(Mesh p, int color) {
// FIXME
}
// FIXME
}
- public void fill(Polygon p, Paint paint) {
+ public void fill(Mesh p, Paint paint) {
// FIXME
}
// FIXME
}