Changeset 226 for misc

Show
Ignore:
Timestamp:
04/23/06 00:17:57 (3 years ago)
Author:
goodea
Message:

no reason not to end on odd

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • misc/java/src/edu/cmu/cs/cc3/misc/FakePixbuf.java

    r225 r226  
    121121            switch (coi) { 
    122122            case CHANNEL_ALL: 
     123                secondGreenValid = false; 
    123124                for (int j = 0; j < width; j++) { 
    124125                    int offset = r * width + j * 3; 
  • misc/java/src/edu/cmu/cs/cc3/misc/Test.java

    r225 r226  
    4343        x0 = new JSpinner(new SpinnerNumberModel(0, 0, FakePixbuf.RAW_WIDTH, 2)); 
    4444        x1 = new JSpinner(new SpinnerNumberModel(FakePixbuf.RAW_WIDTH, 0, 
    45                 FakePixbuf.RAW_WIDTH, 2)); 
     45                FakePixbuf.RAW_WIDTH, 1)); 
    4646        y0 = new JSpinner( 
    4747                new SpinnerNumberModel(0, 0, FakePixbuf.RAW_HEIGHT, 1)); 
     
    9191        } 
    9292        jf.getContentPane().add(img); 
     93 
     94//        System.out.println("x: " + (double) p.width / (double) p.rawWidth); 
     95//        System.out.println("y: " + (double) p.height / (double) p.rawHeight); 
    9396    } 
    9497 
     
    128131            } else { 
    129132                for (int x = 0; x < p.getWidth(); x++) { 
    130                     b.setRGB(x, y, (row[i] & 0xFF) << 16 
    131                             | (row[i] & 0xFF) << 8 | (row[i] & 0xFF)); 
     133                    b.setRGB(x, y, (row[i] & 0xFF) << 16 | (row[i] & 0xFF) << 8 
     134                            | (row[i] & 0xFF)); 
    132135                    i += 1; 
    133136                }