Changeset 1897 in Sophya for trunk/SophyaPI/PI/pigraphgen.cc


Ignore:
Timestamp:
Feb 10, 2002, 6:51:58 PM (24 years ago)
Author:
ansari
Message:

Optimisation implementation PIGraphX::DrawMarker - Reza 10/02/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraphgen.cc

    r1896 r1897  
    238238
    239239  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);
    241242    xs = (int)x+sw_s+deltaposx;
    242243    ys = (int)y+dyu;
    243244    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);
    245246    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);
    247248  }
    248249  else {
     
    254255      xs = (int)xs+deltaposx;
    255256      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);
    257258      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);     
    259260    }
    260261    else if (posh == PI_HorizontalCenter) {
     
    265266      xs = (int)xs+deltaposx;
    266267      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);
    268269      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);           
    270271    }
    271272    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);
    273275      SelFont(fnt_ss);
    274276      xs = (int)x+sw_s+deltaposx;
    275277      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);
    277279      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);
    279281    }
    280282  }
Note: See TracChangeset for help on using the changeset viewer.