"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "layer1/ScrollBar.cpp" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

ScrollBar.cpp  (pymol-v1.8.6.0.tar.bz2):ScrollBar.cpp  (pymol-v2.1.0.tar.bz2)
skipping to change at line 73 skipping to change at line 73
int range; int range;
if(I->HorV) { if(I->HorV) {
range = (I->Block->rect.right - I->Block->rect.left); range = (I->Block->rect.right - I->Block->rect.left);
} else { } else {
range = (I->Block->rect.top - I->Block->rect.bottom); range = (I->Block->rect.top - I->Block->rect.bottom);
} }
I->ExactBarSize = (range * I->DisplaySize) / (float) I->ListSize; I->ExactBarSize = (range * I->DisplaySize) / (float) I->ListSize;
I->BarSize = (int) (0.499F + I->ExactBarSize); I->BarSize = (int) (0.499F + I->ExactBarSize);
if(I->BarSize < 4) if(I->BarSize < 4)
I->BarSize = 4; I->BarSize = DIP2PIXEL(4);
I->BarRange = range - I->BarSize; I->BarRange = range - I->BarSize;
if(I->BarRange < 2) if(I->BarRange < 2)
I->BarRange = 2; I->BarRange = 2;
I->ValueMax = (float) I->ListSize - I->DisplaySize; I->ValueMax = (float) I->ListSize - I->DisplaySize;
if(I->ValueMax < 1) if(I->ValueMax < 1)
I->ValueMax = 1; I->ValueMax = 1;
if(I->Value > I->ValueMax) if(I->Value > I->ValueMax)
I->Value = (float) I->ValueMax; I->Value = (float) I->ValueMax;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)