MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / readRect

Method readRect

java/com/tigervnc/rfb/CMsgReader.java:202–215  ·  view source on GitHub ↗
(Rect r, int encoding)

Source from the content-addressed store, hash-verified

200 }
201
202 protected void readRect(Rect r, int encoding)
203 {
204 if ((r.br.x > handler.server.width()) || (r.br.y > handler.server.height())) {
205 vlog.error("Rect too big: "+r.width()+"x"+r.height()+" at "+
206 r.tl.x+","+r.tl.y+" exceeds "+handler.server.width()+"x"+
207 handler.server.height());
208 throw new Exception("Rect too big");
209 }
210
211 if (r.is_empty())
212 vlog.error("Ignoring zero size rect");
213
214 handler.dataRect(r, encoding);
215 }
216
217 protected void readSetXCursor(int width, int height, Point hotspot)
218 {

Callers 1

readMsgMethod · 0.95

Calls 5

errorMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45
is_emptyMethod · 0.45
dataRectMethod · 0.45

Tested by

no test coverage detected