Changeset 1897 in Sophya for trunk/SophyaPI/PI/pigraphgen.cc
- Timestamp:
- Feb 10, 2002, 6:51:58 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraphgen.cc
r1896 r1897 238 238 239 239 if ((pos == 0) || ((posh == PI_HorizontalLeft) && (posv == PI_VerticalBaseLine))) { 240 if (s != NULL) DrawString(x, y, s, 0); 240 xs = (int)x+sw_s; 241 if (s != NULL) DrawString(xs, y, s, PI_HorizontalRight); 241 242 xs = (int)x+sw_s+deltaposx; 242 243 ys = (int)y+dyu; 243 244 SelFont(fnt_ss); 244 if (s_up != NULL) DrawString(xs, ys, s_up, 0);245 if (s_up != NULL) DrawString(xs, ys, s_up, PI_HorizontalLeft); 245 246 ys = (int)y+dyd; 246 if (s_dn != NULL) DrawString(xs, ys, s_dn, 0);247 if (s_dn != NULL) DrawString(xs, ys, s_dn, PI_HorizontalLeft); 247 248 } 248 249 else { … … 254 255 xs = (int)xs+deltaposx; 255 256 ys = (int)y+dyu; 256 if (s_up != NULL) DrawString(xs, ys, s_up, 0);257 if (s_up != NULL) DrawString(xs, ys, s_up, PI_HorizontalLeft); 257 258 ys = (int)y+dyd; 258 if (s_dn != NULL) DrawString(xs, ys, s_dn, 0);259 if (s_dn != NULL) DrawString(xs, ys, s_dn, PI_HorizontalLeft); 259 260 } 260 261 else if (posh == PI_HorizontalCenter) { … … 265 266 xs = (int)xs+deltaposx; 266 267 ys = (int)y+dyu; 267 if (s_up != NULL) DrawString(xs, ys, s_up, 0);268 if (s_up != NULL) DrawString(xs, ys, s_up, PI_HorizontalLeft); 268 269 ys = (int)y+dyd; 269 if (s_dn != NULL) DrawString(xs, ys, s_dn, 0);270 if (s_dn != NULL) DrawString(xs, ys, s_dn, PI_HorizontalLeft); 270 271 } 271 272 else { 272 if (s != NULL) DrawString(x, y, s, posv); 273 xs = (int)x+sw_s; 274 if (s != NULL) DrawString(x, y, s, PI_HorizontalRight | posv); 273 275 SelFont(fnt_ss); 274 276 xs = (int)x+sw_s+deltaposx; 275 277 ys = (int)y+dyu; 276 if (s_up != NULL) DrawString(xs, ys, s_up, 0);278 if (s_up != NULL) DrawString(xs, ys, s_up, PI_HorizontalLeft); 277 279 ys = (int)y+dyd; 278 if (s_dn != NULL) DrawString(xs, ys, s_dn, 0);280 if (s_dn != NULL) DrawString(xs, ys, s_dn, PI_HorizontalLeft); 279 281 } 280 282 }
Note:
See TracChangeset
for help on using the changeset viewer.