mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fixed issue of level editor getting super low res when resizing the window when not looking at the ThangsTabView.
This commit is contained in:
parent
e0d76932c5
commit
8df779b5a3
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue