Skip to content

Commit 775a954

Browse files
authored
Merge pull request #47 from tomaz82/zoom
Fix zoom text in combobox to update when zooming with mouse wheel, an…
2 parents 9557395 + 89030ea commit 775a954

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

Changelog.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
- Remember latest Author and default to it when creating a new table.
1414
- Detect rom id, rom type and inverted state from the filename when importing snippit images. (S12 iL14 Gi2)
1515
- Remember latest import directory.
16-
- Added the option to right click a reel, credit reel or led set in the "Reels and LEDs" window and export or delete it.
17-
- Added Drag n Drop support for loading .directb2s, .b2s and .b2b projects.
18-
- Added Drag n Drop support for creating snippits from .png files.
19-
- Fixed the Location and Size not updating in the Illumination window when right clicking and selecting a bulb.
16+
- Add "Export" and "Delete" options when right clicking a reel, credit reel or led set in the "Reels and LEDs" window.
17+
- Add Drag n Drop support for loading .directb2s, .b2s and .b2b projects.
18+
- Add Drag n Drop support for creating snippits from .png files.
19+
- Fix the Location and Size not updating in the Illumination window when right clicking and selecting a bulb.
20+
- Change default zoom to "window"
21+
- Fix zoom combo box to change it values when zoom is changed with mouse wheel.
2022

2123
2.1.0
2224
- Increased Max ZOrder to 19 from 9 by jonesyUK

b2sbackglassdesigner/b2sbackglassdesigner/classes/Tab/B2STabPage.vb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -541,15 +541,7 @@ Public Class B2STabPage
541541
Dim factor2 As Double = currentimage.Height / Me.Height
542542
If factor < factor2 Then factor = factor2
543543
Dim width As Integer = (BackglassData.Image.Width - 4) / factor
544-
Dim height As Integer = (BackglassData.Image.Height - 4) / factor
545-
PictureBox.Size = New Size(width, height)
546-
If BackglassData.DMDImage IsNot Nothing Then
547-
width = (BackglassData.DMDImage.Width - 4) / factor
548-
height = (BackglassData.DMDImage.Height - 4) / factor
549-
DMDPictureBox.Size = New Size(width, height)
550-
End If
551-
BackglassData.Zoom = CInt(PictureBox.Size.Width / BackglassData.Image.Width * 100)
552-
Me.Invalidate()
544+
Zoom(CInt(width / BackglassData.Image.Width * 100))
553545
ElseIf zoomtext.Contains("%") AndAlso IsNumeric(zoomtext.Replace("%", "")) Then
554546
Zoom(CInt(zoomtext.Replace("%", "")))
555547
End If
@@ -567,6 +559,7 @@ Public Class B2STabPage
567559
End If
568560
BackglassData.Zoom = zoomvalue
569561
Me.Invalidate()
562+
UpdateStatusBar(B2SBackglassDesigner.formDesigner, Me)
570563
End If
571564
End Sub
572565

b2sbackglassdesigner/b2sbackglassdesigner/formDesigner.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,7 @@ Public Class formDesigner
19401940
B2STab.AddBackglass(New B2STabPage(_backglassdata))
19411941
B2STab.SelectedIndex = B2STab.TabPages.Count - 1
19421942
Backglass.currentData.IsDirty = False
1943+
B2STab.SelectedTabPage.Zoom("Window")
19431944
End If
19441945
recent.AddToRecentList(_backglassdata)
19451946
End If

0 commit comments

Comments
 (0)