Differences From Artifact [93d9f5f261f71d2c]:
- File
src/gui.d
- 2012-07-15 15:38:46 - part of checkin [d40deaae5a] on branch trunk - Trampoline factored out. (user: kinaba) [annotate]
To Artifact [2b6041f7525bfa95]:
- File
src/gui.d
- 2012-07-16 09:08:54 - part of checkin [9c48acc38d] on branch trunk - gui: auto-center (user: kinaba) [annotate]
20 20 t.interval = 50;
21 21 t.tick ~= (Timer s, EventArgs e){command(solver.single_step());};
22 22 t.start();
23 23 this.closing ~= (Form f,CancelEventArgs c){t.stop();};
24 24 } else {
25 25 setup_keyhandling(command);
26 26 }
27 + this.startPosition = FormStartPosition.CENTER_SCREEN;
27 28 Application.run(this);
28 29 }
29 30
30 31 override void on_game_changed(char c, in Game g, bool finished)
31 32 {
32 33 draw(g);
33 34 }