Handle empty rects in RAW decoder as well
It was overlooked in the previous commit because we couldn't feed empty data messages through the test framework.
This commit is contained in:
committed by
Lauri Kasanen
parent
6d1cebc24a
commit
33a113a475
@@ -13,6 +13,10 @@ export default class RawDecoder {
|
||||
}
|
||||
|
||||
decodeRect(x, y, width, height, sock, display, depth) {
|
||||
if ((width === 0) || (height === 0)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this._lines === 0) {
|
||||
this._lines = height;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user