Black
Black copied to clipboard
NONE Scaling Mode
Is your feature request related to a problem? Please describe. Currently when handling canvas scaling myself, there is no clean way to disable automatic scaling by BlackEngine.
Describe the solution you'd like Add a new ScaleMode called StageScaleMode.NONE. This would perform no action in the refresh function here: https://github.com/MassiveHeights/Black/blob/af2ae79b6134d11d473e066c552e183de04e2ed7/src/display/Stage.js#L133
Describe alternatives you've considered The only alternative atm is to set the scale mode to something not supported and live with the constant console error messages.
engine.stage.scaleMode = 'NONE';
Also here the canvas is always being resized to fill the window.. https://github.com/MassiveHeights/Black/blob/3b31e2a4568abefae7e8cb2e36b9dcf65b195491/src/drivers/canvas/CanvasDriver.js#L190 which seems like a waste of rendering to me.