diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:20:03 +0200 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:20:03 +0200 |
| commit | b45d74b60dfb7e23911df6b0523890e42f711267 (patch) | |
| tree | 42bb5764b05bd3bc5bffadb55f4375e6dce8a521 /app/bin/cprofile.c | |
| parent | 6c1a798b0302034a7fdcaf93b8f014e2e458c2a0 (diff) | |
| parent | 63ec5715054be18ac4db5675e067b41c955d03b9 (diff) | |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'app/bin/cprofile.c')
| -rw-r--r-- | app/bin/cprofile.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/app/bin/cprofile.c b/app/bin/cprofile.c index ba51383..0bf89b6 100644 --- a/app/bin/cprofile.c +++ b/app/bin/cprofile.c @@ -604,6 +604,7 @@ static void DoProfilePrint(void * junk) wFont_p fp; coOrd screenSize; coOrd textsize; + double topMargin, rightMargin, bottomMargin, leftMargin; if (!wPrintDocStart(_("Profile"), 1, &copies)) { return; @@ -614,6 +615,10 @@ static void DoProfilePrint(void * junk) } printProfileD.dpi = wDrawGetDPI(printProfileD.d); wPrintGetPageSize(&w, &h); + wPrintGetMargins( &topMargin, &rightMargin, + &bottomMargin, &leftMargin ); + w -= (leftMargin+rightMargin); + h -= (topMargin+bottomMargin); printProfileD.orig.x = -PBL(printProfileFontSize); printProfileD.orig.y = -PBB(printProfileFontSize); printProfileD.angle = 0.0; @@ -871,7 +876,7 @@ DoProfileReset(void *junk) static void DoProfileChange(void *junk) { - DestroyCopyOfProfileElements(); + CreateCopyProfileElements(); TempRedraw(); } @@ -1440,7 +1445,7 @@ static STATUS_T CmdProfile(wAction_t action, coOrd pos) labelH = textsize.y; labelW = textsize.x; profileW = ParamCreateDialog(&profilePG, MakeWindowTitle(_("Profile")), NULL, - NULL, wHide, TRUE, NULL, F_RESIZE, CloseProfileWindow); + NULL, ParamCancel_Undo, TRUE, NULL, F_RESIZE, CloseProfileWindow); } ParamLoadControls(&profilePG); ParamGroupRecord(&profilePG); @@ -1512,7 +1517,7 @@ static void ProfileChange(long changes) } } -#include "bitmaps/profile.xpm3" +#include "bitmaps/profile.image3" EXPORT void InitCmdProfile(wMenu_p menu) { @@ -1520,7 +1525,7 @@ EXPORT void InitCmdProfile(wMenu_p menu) ParamRegister(&profilePG); AddMenuButton(menu, CmdProfile, "cmdProfile", _("Profile"), - wIconCreatePixMap(profile_xpm3[iconSize]), LEVEL0_50, + wIconCreatePixMap(profile_image3[iconSize]), LEVEL0_50, IC_LCLICK|IC_CMDMENU|IC_POPUP3, ACCL_PROFILE, NULL); profilePopupM = MenuRegister("Profile Mode"); |
