comparison 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
comparison
equal deleted inserted replaced
79:0602d9bf474a 80:2f1ecc1c5f72
104 int y0; // top (y) window start 104 int y0; // top (y) window start
105 int key; // holds value returned by InputInteger 105 int key; // holds value returned by InputInteger
106 int delta = 0; // user input for delta 106 int delta = 0; // user input for delta
107 107
108 108
109 x0 = (ScrMaxX - 25 - 44 * FONTW) / 2; 109 x0 = (cfg.ScrMaxX - 25 - 44 * FONTW) / 2;
110 y0 = (ScrMaxY - 7 * FONTH) / 2; 110 y0 = (cfg.ScrMaxY - 7 * FONTH) / 2;
111 DrawScreenBox3D(x0, y0, x0 + 25 + 44 * FONTW, y0 + 7 * FONTH); 111 DrawScreenBox3D(x0, y0, x0 + 25 + 44 * FONTW, y0 + 7 * FONTH);
112 set_colour(WHITE); 112 set_colour(WHITE);
113 DrawScreenText(x0 + 10, y0 + FONTH, 113 DrawScreenText(x0 + 10, y0 + FONTH,
114 "Enter number of units to raise the ceilings"); 114 "Enter number of units to raise the ceilings");
115 DrawScreenText(x0 + 10, y0 + 2 * FONTH, 115 DrawScreenText(x0 + 10, y0 + 2 * FONTH,
145 int y0; // top (y) window start 145 int y0; // top (y) window start
146 int key; // holds value returned by InputInteger 146 int key; // holds value returned by InputInteger
147 int delta = 0; // user input for delta 147 int delta = 0; // user input for delta
148 148
149 149
150 x0 = (ScrMaxX - 25 - 44 * FONTW) / 2; 150 x0 = (cfg.ScrMaxX - 25 - 44 * FONTW) / 2;
151 y0 = (ScrMaxY - 7 * FONTH) / 2; 151 y0 = (cfg.ScrMaxY - 7 * FONTH) / 2;
152 DrawScreenBox3D(x0, y0, x0 + 25 + 44 * FONTW, y0 + 7 * FONTH); 152 DrawScreenBox3D(x0, y0, x0 + 25 + 44 * FONTW, y0 + 7 * FONTH);
153 set_colour(WHITE); 153 set_colour(WHITE);
154 DrawScreenText(x0 + 10, y0 + FONTH, "Enter number of units to brighten"); 154 DrawScreenText(x0 + 10, y0 + FONTH, "Enter number of units to brighten");
155 DrawScreenText(x0 + 10, y0 + 2 * FONTH, "the selected sectors by."); 155 DrawScreenText(x0 + 10, y0 + 2 * FONTH, "the selected sectors by.");
156 DrawScreenText(x0 + 10, y0 + 3 * FONTH, 156 DrawScreenText(x0 + 10, y0 + 3 * FONTH,