"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CPP/7zip/UI/GUI/BenchmarkDialog.cpp" between
p7zip_15.14.1_src_all.tar.gz and p7zip_16.02_src_all.tar.gz

About: p7zip is a command-line file archiver with a high compression ratio (a port of the Windows program 7za.exe).

BenchmarkDialog.cpp  (p7zip_15.14.1_src_all):BenchmarkDialog.cpp  (p7zip_16.02_src_all)
skipping to change at line 247 skipping to change at line 247
#ifdef _WIN32 #ifdef _WIN32
bool CBenchmarkDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize) bool CBenchmarkDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
{ {
if (!TotalMode) if (!TotalMode)
return false; return false;
int mx, my; int mx, my;
GetMargins(8, mx, my); GetMargins(8, mx, my);
int bx1, bx2, by; int bx1, bx2, by;
GetItemSizes(IDCANCEL, bx1, by); GetItemSizes(IDCANCEL, bx1, by);
GetItemSizes(IDHELP, bx2, by); GetItemSizes(IDHELP, bx2, by);
int y = ySize - my - by;
int x = xSize - mx - bx1;
InvalidateRect(NULL); {
int y = ySize - my - by;
int x = xSize - mx - bx1;
InvalidateRect(NULL);
MoveItem(IDCANCEL, x, y, bx1, by);
MoveItem(IDHELP, x - mx - bx2, y, bx2, by);
}
MoveItem(IDCANCEL, x, y, bx1, by);
MoveItem(IDHELP, x - mx - bx2, y, bx2, by);
if (_consoleEdit) if (_consoleEdit)
{ {
int yPos = ySize - my - by; int yPos = ySize - my - by;
RECT rect; RECT rect;
GetClientRectOfItem(IDE_BENCH2_EDIT, rect); GetClientRectOfItem(IDE_BENCH2_EDIT, rect);
int y = rect.top; int y = rect.top;
int ySize2 = yPos - my - y; int ySize2 = yPos - my - y;
const int kMinYSize = 20; const int kMinYSize = 20;
int xx = xSize - mx * 2; int xx = xSize - mx * 2;
if (ySize2 < kMinYSize) if (ySize2 < kMinYSize)
 End of changes. 3 change blocks. 
5 lines changed or deleted 9 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS