Index: test.d ================================================================== --- test.d +++ test.d @@ -153,11 +153,11 @@ override void onResize(EventArgs ev) { invalidate(); } override void onPaint(PaintEventArgs ev) { - int Z = min(this.clientSize.width, this.clientSize.height) / max(m.W-2, m.H-2); + int Z = min(this.clientSize.width/(m.W-2), this.clientSize.height/(m.H-2)); Font font = new Font("MS Gothic", Z-4); Graphics g = ev.graphics; for(int y=1; y+1