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 t.interval = 50; 20 t.interval = 50;
21 t.tick ~= (Timer s, EventArgs e){command(solver.single_s 21 t.tick ~= (Timer s, EventArgs e){command(solver.single_s
22 t.start(); 22 t.start();
23 this.closing ~= (Form f,CancelEventArgs c){t.stop();}; 23 this.closing ~= (Form f,CancelEventArgs c){t.stop();};
24 } else { 24 } else {
25 setup_keyhandling(command); 25 setup_keyhandling(command);
26 } 26 }
> 27 this.startPosition = FormStartPosition.CENTER_SCREEN;
27 Application.run(this); 28 Application.run(this);
28 } 29 }
29 30
30 override void on_game_changed(char c, in Game g, bool finished) 31 override void on_game_changed(char c, in Game g, bool finished)
31 { 32 {
32 draw(g); 33 draw(g);
33 } 34 }