Prevent access to sensitive display variables

These should not be directly accessed. Instead use drawing operation
and Display.resize().
This commit is contained in:
Pierre Ossman
2016-11-11 14:01:42 +01:00
parent 84cd0e719e
commit e549ae074f
2 changed files with 3 additions and 15 deletions
+2 -13
View File
@@ -566,24 +566,13 @@
},
// Overridden getters/setters
get_context: function () {
return this._drawCtx;
},
set_scale: function (scale) {
this._rescale(scale);
},
set_width: function (w) {
this._fb_width = w;
},
get_width: function () {
return this._fb_width;
},
set_height: function (h) {
this._fb_height = h;
},
get_height: function () {
return this._fb_height;
},
@@ -785,8 +774,8 @@
['colourMap', 'rw', 'arr'], // Colour map array (when not true-color)
['scale', 'rw', 'float'], // Display area scale factor 0.0 - 1.0
['viewport', 'rw', 'bool'], // Use viewport clipping
['width', 'rw', 'int'], // Display area width
['height', 'rw', 'int'], // Display area height
['width', 'ro', 'int'], // Display area width
['height', 'ro', 'int'], // Display area height
['maxWidth', 'rw', 'int'], // Viewport max width (0 if disabled)
['maxHeight', 'rw', 'int'], // Viewport max height (0 if disabled)