Overview
SHA1 Hash: | 29ace8e5eb9d885574a41bb13ad867507a157238 |
---|---|
Date: | 2012-07-14 00:42:52 |
User: | kinaba |
Comment: | Fix wrong gui sizing formula. |
Timelines: | family | ancestors | descendants | both | trunk |
Diffs: | redesign |
Downloads: | Tarball | ZIP archive |
Other Links: | files | file ages | manifest |
Tags And Properties
- branch=trunk inherited from [16f0b5784f]
- sym-trunk inherited from [16f0b5784f]
Changes
Modified test.d from [8775e42f1f972b84] to [f86b02b80bcf28bb].
151 this.score = 0; 151 this.score = 0; 152 } 152 } 153 override void onResize(EventArgs ev) { 153 override void onResize(EventArgs ev) { 154 invalidate(); 154 invalidate(); 155 } 155 } 156 override void onPaint(PaintEventArgs ev) 156 override void onPaint(PaintEventArgs ev) 157 { 157 { 158 int Z = min(this.clientSize.width, this.clientSize.height) / max | 158 int Z = min(this.clientSize.width/(m.W-2), this.clientSize.heigh 159 Font font = new Font("MS Gothic", Z-4); 159 Font font = new Font("MS Gothic", Z-4); 160 Graphics g = ev.graphics; 160 Graphics g = ev.graphics; 161 for(int y=1; y+1<m.H; ++y) 161 for(int y=1; y+1<m.H; ++y) 162 for(int x=1; x+1<m.W; ++x) { 162 for(int x=1; x+1<m.W; ++x) { 163 if(m.data[y][x]=='*') { 163 if(m.data[y][x]=='*') { 164 g.drawText("岩", font, Color(0,0,0), Rect((x-1)*Z 164 g.drawText("岩", font, Color(0,0,0), Rect((x-1)*Z 165 } 165 }