diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:41 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2025-09-20 19:19:41 +0200 | 
| commit | 63ec5715054be18ac4db5675e067b41c955d03b9 (patch) | |
| tree | 42bb5764b05bd3bc5bffadb55f4375e6dce8a521 /app/bin/cprofile.c | |
| parent | 6c1a798b0302034a7fdcaf93b8f014e2e458c2a0 (diff) | |
| parent | e7d20cf352688bf717a01f4e6d9e6f497c2bea4c (diff) | |
Update upstream source from tag 'upstream/5.3.1Beta2'
Update to upstream version '5.3.1Beta2'
with Debian dir 36e53756d97319b1944d0ea744717abc9326f697
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");  | 
