Changeset 337 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jul 22, 1999, 6:59:30 PM (26 years ago)
Author:
ercodmgr
Message:

Petit probleme couleur avec texte blanc ds PIImage - Reza 22/7/99

File:
1 edited

Legend:

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

    r329 r337  
    447447if ( (cmapid == CMAP_GREY32) || (cmapid == CMAP_GREYINV32) ||
    448448     (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128))  mdrw->SetColAtt(PI_Red);
    449 else mdrw->SetColAtt(PI_White);
     449else mdrw->SetColAtt(PI_Turquoise);
    450450PIPixmap::SetColMap(cmp, refr);
    451451if (refr) { xcurs =  ycurs = -1; }
     
    461461if ( (cmapid == CMAP_GREY32) || (cmapid == CMAP_GREYINV32) ||
    462462     (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128))  mdrw->SetColAtt(PI_Red);
    463 else mdrw->SetColAtt(PI_White);
     463else mdrw->SetColAtt(PI_Turquoise);
    464464PIPixmap::SetColMapId(cmapid, refr);
    465465if (zow)  zow->SetColMapId(cmapid, refr);
     
    10941094  PIGOMode gm = g->GetGOMode();
    10951095  g->SelGOMode(PI_GOCopy);
    1096   g->SelForeground(PI_White);
     1096  int cmapid = cmap->Type();
     1097  if ( (cmapid == CMAP_GREY32) || (cmapid == CMAP_GREYINV32) ||
     1098       (cmapid == CMAP_GREY128) || (cmapid == CMAP_GREYINV128))  g->SelForeground(PI_Red);
     1099  else g->SelForeground(PI_Turquoise);
     1100//  g->SelForeground(PI_White);
    10971101  g->SelBackground(PI_Black);
    10981102  g->DrawOpaqueString(20, YSize()-5, txt);
Note: See TracChangeset for help on using the changeset viewer.