Mercurial > hg > Applications > TreeVNC
comparison src/viewer_swing/java/com/glavsoft/viewer/swing/RendererImpl.java @ 59:433c79184c05
merge version2.7.2
author | Taninari YU <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Dec 2013 20:16:48 +0900 |
parents | 17b702648079 f70008073a03 |
children |
comparison
equal
deleted
inserted
replaced
58:9d4c4b64acb5 | 59:433c79184c05 |
---|---|
36 import java.util.concurrent.TimeUnit; | 36 import java.util.concurrent.TimeUnit; |
37 import java.util.concurrent.TimeoutException; | 37 import java.util.concurrent.TimeoutException; |
38 | 38 |
39 public class RendererImpl extends Renderer implements ImageObserver { | 39 public class RendererImpl extends Renderer implements ImageObserver { |
40 CyclicBarrier barrier = new CyclicBarrier(2); | 40 CyclicBarrier barrier = new CyclicBarrier(2); |
41 private final Image offscreanImage; | 41 private final Image offscreanImage; |
42 | |
42 public RendererImpl(Reader reader, int width, int height, PixelFormat pixelFormat) { | 43 public RendererImpl(Reader reader, int width, int height, PixelFormat pixelFormat) { |
43 if (0 == width) width = 1; | 44 if (0 == width) width = 1; |
44 if (0 == height) height = 1; | 45 if (0 == height) height = 1; |
45 init(reader, width, height, pixelFormat); | 46 init(reader, width, height, pixelFormat); |
46 ColorModel colorModel = new DirectColorModel(24, 0xff0000, 0xff00, 0xff); | 47 ColorModel colorModel = new DirectColorModel(24, 0xff0000, 0xff00, 0xff); |