Commit Graph

13 Commits (d5b84d918564306ce94862b9cc480b75d6b30793)

Author SHA1 Message Date
Pierre Ossman d5b84d9185 Avoid fractional pixel sizes from Display 4 years ago
Pierre Ossman ae1bc396bf Standardise on a single blit function
Keep everything simpler by always blitting in the same pixel format.
It's up to the decoders to convert if they need to.
4 years ago
Pierre Ossman 212e0f1a10 Move tile handling to Hextile decoder
It is only used there so no need for it to be in the general
Display class.
4 years ago
Samuel Mannehed 69b945fc87 Standardize on camelCase in Display 4 years ago
Samuel Mannehed 59f5648592 Remove unused properties and variables
The code that used these were removed in the following commits:

* 9ff86fb718477515ede2d6457f06643935d76bcd (RFB._mouse_arr)
* bb6965f2e60c2301dd638383bdc792d1f10af942 (old_requestAnimationFrame)
* 490d471c53b1791398d6c30f0efce54925939f33 (Display._c_forceCanvas)
4 years ago
Pierre Ossman 8be70e5ae0 Handle slow loading of images
Internet Explorer seems to flag images as loaded prematurely, which
can result in rendering bugs. We can detect this by looking at the
dimensions though.
4 years ago
Samuel Mannehed 0dcb896920 Update copyright to 2019 for modified files 4 years ago
Pierre Ossman c211f31113 Remove pointless Display.clear()
It served no meaningful purpose and it had bugs. So let's remove it
rather than try to fix it.
4 years ago
Pierre Ossman 4cc536636a Remove unused Display.logo attribute 4 years ago
Samuel Mannehed 12565dc4ac Allow autoscale() with zero height or width
Commit 6e7e6f9 stopped the function from running if width or height was
zero, this commit reverts that change. This commit also makes the
resulting canvas 0x0 if autoscale is called with zero. By adding this
special case we can avoid division by zero in the calculations.
4 years ago
Samuel Mannehed 79ab05192b Add check for bad values for Display.autoscale() 4 years ago
Juanjo Diaz 37c17ddbf9 Move support check from display to browser 4 years ago
matt 408c005d3e Initial commit 5 years ago