Fixed issue of level editor getting super low res when resizing the window when not looking at the ThangsTabView.

This commit is contained in:
Nick Winter 2015-02-27 13:49:13 -08:00
parent e0d76932c5
commit 8df779b5a3

View file

@ -538,6 +538,7 @@ module.exports = Surface = class Surface extends CocoClass
newHeight = newWidth / aspectRatio
return unless newWidth > 0 and newHeight > 0
return if newWidth is oldWidth and newHeight is oldHeight and not @options.spectateGame
#return if newWidth < 200 or newHeight < 200
#scaleFactor = if application.isIPadApp then 2 else 1 # Retina
scaleFactor = 1
@normalCanvas.add(@webGLCanvas).attr width: newWidth * scaleFactor, height: newHeight * scaleFactor