Skip to content

Commit

Permalink
#122 Only crop "standard" images which does not rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
JockeJarre committed Nov 6, 2024
1 parent 38928d9 commit 4128552
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions b2sbackglassserver/b2sbackglassserver/Forms/formBackglass.vb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ Public Class formBackglass
End
End If


' get the game name
'B2SSettings.GameName = "bguns_l8"
'B2SSettings.GameName = "closeenc"
Expand Down Expand Up @@ -2096,7 +2095,10 @@ Public Class formBackglass
If innerNode.Attributes("OffImage") IsNot Nothing Then
offimage = Base64ToImage(innerNode.Attributes("OffImage").InnerText)
End If
image = CropImageToTransparency(image, offimage, loc, size)
If picboxtype = B2SPictureBox.ePictureBoxType.StandardImage Then
' Events of overlapping pictures get merged #76, crop image transparency
image = CropImageToTransparency(image, offimage, loc, size)
End If
' create new picturebox control
Dim picbox As B2SPictureBox = New B2SPictureBox()
Dim IsOnBackglass As Boolean = (parent = "Backglass")
Expand Down

0 comments on commit 4128552

Please sign in to comment.