From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- app/bin/cprofile.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'app/bin/cprofile.c') 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"); -- cgit v1.2.3