Changeset 1670 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/25/02 13:27:28 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1668 r1670  
    11                                                               -*-*- END -*-*-
    22 2002/11/25: Thomas Bretz
     3
     4   * mgui/MCamDisplazy.cc:
     5     - fixed a bug when sprintf the pointer to the char-array, only
     6       took place on alphas.
    37
    48   * macros/multidimdist2.C:
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.cc

    r1600 r1670  
    424424    TButton *but;
    425425    char txt[100];
    426     sprintf(txt, "((MCamDisplay*)%p)->SetPalette(1,0);", this);
     426    sprintf(txt, "((MCamDisplay*)0x%lx)->SetPalette(1,0);", this);
    427427    but = new TButton("Pretty", txt, 0.01, 0.95, 0.15, 0.99);
    428428    but->Draw();
    429     sprintf(txt, "((MCamDisplay*)%p)->SetPalette(51,0);", this);
     429    sprintf(txt, "((MCamDisplay*)0x%lx)->SetPalette(51,0);", this);
    430430    but = new TButton("Deap Sea", txt, 0.16, 0.95, 0.30, 0.99);
    431431    but->Draw();
    432     sprintf(txt, "((MCamDisplay*)%p)->SetPalette(52,0);", this);
     432    sprintf(txt, "((MCamDisplay*)0x%lx)->SetPalette(52,0);", this);
    433433    but = new TButton("Blue Inv", txt, 0.31, 0.95, 0.45, 0.99);
    434434    but->Draw();
Note: See TracChangeset for help on using the changeset viewer.