X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/287584cf1c2b80811f3ba912d8134ffbe04f07b0..38b72baaf977880d0d0caf230c81e242ded5aad6:/res/wscen.tcl diff --git a/res/wscen.tcl b/res/wscen.tcl index 4ccc862..900be60 100644 --- a/res/wscen.tcl +++ b/res/wscen.tcl @@ -75,9 +75,12 @@ if {[catch "toplevel $win -screen $display"]} { return "" } +global ScenarioPanelWidth +global ScenarioPanelHeight + wm title $win "Micropolis Scenarios" wm iconname $win {Micropolis Scenarios} -wm geometry $win 1200x900+0+0 +wm geometry $win ${ScenarioPanelWidth}x${ScenarioPanelHeight}+0+0 wm withdraw $win wm protocol $win delete "DeleteScenarioWindow $win ;" wm fullscreen $win on @@ -90,13 +93,15 @@ canvas $win.canvas \ -scrollincrement 0 \ -borderwidth 0 \ -background #BFBFBF \ - -width 1200 -height 900 + -width $ScenarioPanelWidth -height $ScenarioPanelHeight LinkWindow $win.canvas $win.canvas LinkWindow $win.canvas.w $win +global ScenarioBackground + $win.canvas create bitmap 0 0 \ -tags background \ - -bitmap "@images/background-micropolis.xpm" \ + -bitmap $ScenarioBackground \ -anchor nw $win.canvas bind background {HandleScenarioDown %W %x %y}