Skip to content

Commit

Permalink
Bug fix: After rescaling visual layer did not appear above placed tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Zilkenat committed Jun 14, 2024
1 parent cfea4cd commit 736f8c3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Class {
'inspector',
'morphBuilders'
],
#category : #'GM-TE'
#category : #'GM-TE-UI'
}

{
Expand Down
2 changes: 1 addition & 1 deletion source/GM-TE/GMTELayerList.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #GMTELayerList,
#superclass : #Morph,
#category : #'GM-TE'
#category : #'GM-TE-UI'
}

{
Expand Down
2 changes: 1 addition & 1 deletion source/GM-TE/GMTETileContainer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#instVars : [
'parent'
],
#category : #'GM-TE',
#category : #'GM-TE-UI',
#'squeak_changestamp' : 'Alex M 5/21/2024 16:50'
}

Expand Down
2 changes: 1 addition & 1 deletion source/GM-TE/GMTETileMap.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ GMTETileMap >> disableVisualLayer [

{
#category : #updating,
#'squeak_changestamp' : 'Alex M 6/13/2024 15:15'
#'squeak_changestamp' : 'Ivo Zilkenat 6/14/2024 18:59'
}
GMTETileMap >> enableVisualLayer [

Expand Down
10 changes: 5 additions & 5 deletions source/GM-TE/GMTETileMatrixLayer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ GMTETileMatrixLayer >> addTile: aTile at: x at: y [

{
#category : #copying,
#'squeak_changestamp' : 'Ivo Zilkenat 6/8/2024 22:26'
#'squeak_changestamp' : 'Ivo Zilkenat 6/14/2024 19:01'
}
GMTETileMatrixLayer >> asRescaledToWidth: aWidth height: aHeight [

| newMatrix |
newMatrix := self class rows: aHeight columns: aWidth.
| newLayer |
newLayer := self class width: aWidth height: aHeight layerIdx: self layerIdx.

"Copy over tiles & handle tile removal"

1 to: (aHeight min: self rowCount) do: [:row |
1 to: (aWidth min: self columnCount) do: [:col |
newMatrix at: row at: col put: (self at: row at: col) veryDeepCopy]].
newLayer at: row at: col put: (self at: row at: col) veryDeepCopy]].

^newMatrix
^newLayer

]

Expand Down
2 changes: 1 addition & 1 deletion source/GM-TE/GMTETileSelector.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'model'
],
#category : #'GM-TE'
#category : #'GM-TE-UI'
}

{
Expand Down
2 changes: 1 addition & 1 deletion source/GM-TE/GMTETileTray.class.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Class {
#name : #GMTETileTray,
#superclass : #AlignmentMorph,
#category : #'GM-TE'
#category : #'GM-TE-UI'
}

{
Expand Down

0 comments on commit 736f8c3

Please sign in to comment.