Mercurial > hg > forks > yadex
diff src/help2.cc @ 80:2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 17:39:49 +0300 |
parents | a68786b9c74b |
children | 20aa5a515896 |
line wrap: on
line diff
--- a/src/help2.cc Mon Sep 26 17:14:54 2011 +0300 +++ b/src/help2.cc Mon Sep 26 17:39:49 2011 +0300 @@ -95,8 +95,8 @@ } width = (maxlen + 4) * FONTW + 2 * BOX_BORDER; height = lines * FONTH + 2 * BOX_BORDER; - x0 = (ScrMaxX + 1 - width) / 2; - y0 = (ScrMaxY + 1 - height) / 2; + x0 = (cfg.ScrMaxX + 1 - width) / 2; + y0 = (cfg.ScrMaxY + 1 - height) / 2; /* put in the instructions */ DrawScreenBox3D(x0, y0, x0 + width - 1, y0 + height - 1); set_colour(LIGHTCYAN); @@ -129,8 +129,8 @@ } int width = 2 * BOX_BORDER + 2 * WIDE_HSPACING + widthc * FONTW; int height = 2 * BOX_BORDER + 2 * WIDE_VSPACING + heightc * FONTH; - int x0 = (ScrMaxX + 1 - width) / 2; - int y0 = (ScrMaxY + 1 - height) / 2; + int x0 = (cfg.ScrMaxX + 1 - width) / 2; + int y0 = (cfg.ScrMaxY + 1 - height) / 2; DrawScreenBox3D(x0, y0, x0 + width - 1, y0 + height - 1); push_colour(WINFG);