comparison src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java @ 269:05f59c18cdca

fix --filterSingleDisplay option
author oc
date Tue, 09 Dec 2014 11:08:32 +0900
parents 4a0c97cfb774
children 2d934eee4f4b
comparison
equal deleted inserted replaced
268:4a0c97cfb774 269:05f59c18cdca
621 blen.putInt(len2); 621 blen.putInt(len2);
622 blen.flip(); 622 blen.flip();
623 bufs.addFirst(blen); 623 bufs.addFirst(blen);
624 bufs.addFirst(header); 624 bufs.addFirst(header);
625 addSerialNumber(bufs); 625 addSerialNumber(bufs);
626 if (filterSingleDisplay) { 626 if (filterSingleDisplay && rect.x < 1920)
627 if (rect.x < 1920) 627 return;
628 return;
629 }
630 multicastqueue.put(bufs); 628 multicastqueue.put(bufs);
631 } catch (DataFormatException e) { 629 } catch (DataFormatException e) {
632 throw new TransportException(e); 630 throw new TransportException(e);
633 } catch (IOException e) { 631 } catch (IOException e) {
634 throw new TransportException(e); 632 throw new TransportException(e);