Skip to content

Commit

Permalink
Added zoom x 3 in GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
abbruzze committed Feb 15, 2022
1 parent c7df0f1 commit 6ddcc39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Kernal64/src/ucesoft/cbm/scpu/SCPUC64.scala
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,13 @@ class SCPUC64 extends CBMComputer {
val zoomItem = new JMenu("Zoom")
val groupZ = new ButtonGroup
optionMenu.add(zoomItem)
for (z <- 1 to 2) {
for(z <- 1 to 3) {
val zoom1Item = new JRadioButtonMenuItem(s"Zoom x $z")
zoom1Item.addActionListener(_ => vicZoom(z))
zoom1Item.addActionListener(_ => vicZoom(z) )
val kea = z match {
case 1 => java.awt.event.KeyEvent.VK_1
case 2 => java.awt.event.KeyEvent.VK_2
case 3 => java.awt.event.KeyEvent.VK_3
}
zoom1Item.setAccelerator(KeyStroke.getKeyStroke(kea, java.awt.event.InputEvent.ALT_DOWN_MASK))
zoomItem.add(zoom1Item)
Expand Down

0 comments on commit 6ddcc39

Please sign in to comment.