Update of /cvsroot/freenet/freenet/src/freenet/support/graph
In directory sc8-pr-cvs1:/tmp/cvs-serv25857/src/freenet/support/graph

Modified Files:
      Tag: stable
        Bitmap.java DibEncoder.java 
Log Message:
5029: Merge from unstable after months of work. MASSIVE changes.
Highlights:
* Next Generation Routing, massive related changes
* Major changes to handling of messages and connections (PeerHandler and related 
changes)
* Even more non-blocking I/O
* Documentation improvements
* Lots of new diagnostics and config options
* Lots of bug fixes and performance tweaking
* Probably lots of new bugs too!


Index: Bitmap.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/graph/Bitmap.java,v
retrieving revision 1.1.6.3
retrieving revision 1.1.6.4
diff -u -w -r1.1.6.3 -r1.1.6.4
--- Bitmap.java 9 Apr 2003 20:30:59 -0000       1.1.6.3
+++ Bitmap.java 28 Oct 2003 20:20:45 -0000      1.1.6.4
@@ -101,6 +101,14 @@
             pixels[px][py] = (byte)pen;
     }
     
+    public void drawPlus(int px, int py) {
+       setPixel(px, py);
+       setPixel(px-1, py);
+       setPixel(px+1, py);
+       setPixel(px, py-1);
+       setPixel(px, py+1);
+    }
+    
     public int getPixel(int px, int py) {
        if (px >= 0 && px < width && py >= 0 && py < height) {
            return ((pixels[px][py]) & 0xff);

Index: DibEncoder.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/graph/DibEncoder.java,v
retrieving revision 1.1
retrieving revision 1.1.6.1
diff -u -w -r1.1 -r1.1.6.1
--- DibEncoder.java     30 May 2002 23:56:52 -0000      1.1
+++ DibEncoder.java     28 Oct 2003 20:20:45 -0000      1.1.6.1
@@ -23,6 +23,8 @@
     public String getMimeType()
     {
         return "image/x-ms-bmp";
+        //TODO: Make this "image/bmp" instead? Seems to work with
+        //both Mozilla and IE whilst 2image/x-ms-bmp" doesn't 
     }
     
     private static void writeIntLE(OutputStream o, int i) throws IOException

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to