Mercurial > hg > forks > yadex
diff src/s_misc.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/s_misc.cc Mon Sep 26 17:14:54 2011 +0300 +++ b/src/s_misc.cc Mon Sep 26 17:39:49 2011 +0300 @@ -106,8 +106,8 @@ int delta = 0; // user input for delta - x0 = (ScrMaxX - 25 - 44 * FONTW) / 2; - y0 = (ScrMaxY - 7 * FONTH) / 2; + x0 = (cfg.ScrMaxX - 25 - 44 * FONTW) / 2; + y0 = (cfg.ScrMaxY - 7 * FONTH) / 2; DrawScreenBox3D(x0, y0, x0 + 25 + 44 * FONTW, y0 + 7 * FONTH); set_colour(WHITE); DrawScreenText(x0 + 10, y0 + FONTH, @@ -147,8 +147,8 @@ int delta = 0; // user input for delta - x0 = (ScrMaxX - 25 - 44 * FONTW) / 2; - y0 = (ScrMaxY - 7 * FONTH) / 2; + x0 = (cfg.ScrMaxX - 25 - 44 * FONTW) / 2; + y0 = (cfg.ScrMaxY - 7 * FONTH) / 2; DrawScreenBox3D(x0, y0, x0 + 25 + 44 * FONTW, y0 + 7 * FONTH); set_colour(WHITE); DrawScreenText(x0 + 10, y0 + FONTH, "Enter number of units to brighten");