X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fplat%2FX11.java;h=cc1bea642b6d67f54fdf8e4aa29208fd2ce6daaf;hp=46a549ea3cfbbc4485168d3e48b1ffe98401f7d3;hb=297fdbde87e6db4732448a0950d1141c7265c169;hpb=8e190fb0ff508ccf4962bbfbf8295a431805c12b diff --git a/src/org/ibex/plat/X11.java b/src/org/ibex/plat/X11.java index 46a549e..cc1bea6 100644 --- a/src/org/ibex/plat/X11.java +++ b/src/org/ibex/plat/X11.java @@ -8,7 +8,6 @@ import org.ibex.util.*; import org.ibex.graphics.*; import org.ibex.core.*; import org.ibex.net.*; -import org.ibex.*; /** Platform implementation for POSIX compliant operating systems with an X11 Server */ public class X11 extends POSIX { @@ -54,9 +53,12 @@ public class X11 extends POSIX { // X11Surface ///////////////////////////////////////////////////// + /** Implements a Surface as an X11 Window */ - public static class X11Surface extends Surface.DoubleBufferedSurface { + public static class X11Surface extends Surface { + public PixelBuffer getPixelBuffer() { return null; } // FIXME + gnu.gcj.RawData window; gnu.gcj.RawData gc; boolean framed = false; @@ -139,7 +141,12 @@ public class X11 extends POSIX { * with all-or-nothing alpha will not use shared pixmaps, however * (since they are only written to once. */ - public static class X11PixelBuffer extends PixelBuffer { + public static class X11PixelBuffer implements PixelBuffer { + + public void drawLine(int x1, int y1, int x2, int y2, int color) { } + public void drawGlyph(Font.Glyph source, int dx1, int dy1, int cx1, int cy1, int cx2, int cy2, int rgb, int pc){} + public void stroke(Polygon p, int color){} + public void fill(Polygon p, Paint paint){} int clipx, clipy, clipw, cliph; int width;