| 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 | { |