Move resize handling in to RFB object

Makes the API simpler and makes it easier for other frontends to
get this functionality.
This commit is contained in:
Pierre Ossman
2017-11-24 15:25:23 +01:00
parent 898cd32c07
commit 9b84f51685
11 changed files with 691 additions and 533 deletions
-9
View File
@@ -91,15 +91,6 @@ describe('Display/Canvas Helper', function () {
expect(display.flip).to.have.been.calledOnce;
});
it('should report clipping when framebuffer > viewport', function () {
expect(display.isClipped).to.be.true;
});
it('should report not clipping when framebuffer = viewport', function () {
display.viewportChangeSize(5, 5);
expect(display.isClipped).to.be.false;
});
it('should show the entire framebuffer when disabling the viewport', function() {
display.clipViewport = false;
expect(display.absX(0)).to.equal(0);