Changeset 2383 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- May 16, 2003, 5:15:55 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r2350 r2383 44 44 static void hideInfoWindow(PIStdImgApp* app); 45 45 46 // Pour compter le nombre de display same a la suite 47 static int nb_disp_same = 0; 46 48 47 49 /* ........................................................... */ … … 628 630 // Les options 629 631 scd->DecodeOptionString(mDefaultAtt, false); 632 if (nb_disp_same > 0) { 633 vector<string> ostatpos; 634 int spo = nb_disp_same%4; 635 if (spo == 1) ostatpos.push_back("statposoff=-0.01,-0.26"); 636 else if (spo == 2) ostatpos.push_back("statposoff=-0.36,-0.01"); 637 else ostatpos.push_back("statposoff=-0.36,-0.26"); 638 scd->DecodeOptionString(ostatpos, true); 639 } 630 640 scd->DecodeOptionString(opts, true); 631 641 … … 720 730 // Les options 721 731 dr3->DecodeOptionString(mDefaultAtt, false); 732 if (nb_disp_same > 1) { 733 vector<string> ostatpos; 734 int spo = nb_disp_same%4; 735 if (spo == 1) ostatpos.push_back("statposoff=-0.01,-0.26"); 736 else if (spo == 2) ostatpos.push_back("statposoff=-0.36,-0.01"); 737 else ostatpos.push_back("statposoff=-0.36,-0.26"); 738 dr3->DecodeOptionString(ostatpos, true); 739 } 740 722 741 dr3->DecodeOptionString(opts, true); 723 742 … … 1444 1463 1445 1464 //DBG cerr << " DBG-Parse-B opts.size()=" << opts.size() << endl; 1465 if (rc == Disp_Same) nb_disp_same++; 1466 else nb_disp_same = 0; 1446 1467 return (rc); 1447 1468 }
Note:
See TracChangeset
for help on using the changeset viewer.