"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uppsrc/Painter/Rasterizer.cpp" between
upp-x11-src-13648.tar.gz and upp-x11-src-13659.tar.gz

About: Ultimate++ is a C++ cross-platform rapid application development framework. Stable release.

Rasterizer.cpp  (upp-x11-src-13648):Rasterizer.cpp  (upp-x11-src-13659)
skipping to change at line 44 skipping to change at line 44
mx = subpixel ? 3 * 256 : 256; mx = subpixel ? 3 * 256 : 256;
sz.cx = cx; sz.cx = cx;
sz.cy = cy; sz.cy = cy;
cell.Alloc(sz.cy + 1); // one more for overrun cell.Alloc(sz.cy + 1); // one more for overrun
STATIC_ASSERT(sizeof(CellArray) == 128); STATIC_ASSERT(sizeof(CellArray) == 128);
cliprect = Sizef(sz); cliprect = Sizef(sz);
Init(); Init();
Reset(); Reset(); // TODO: Can be removed (cell is just constructed, Init called a bove)
} }
void Rasterizer::Free() void Rasterizer::Free()
{ {
if(cell) if(cell)
for(int i = 0; i <= sz.cy; i++) for(int i = 0; i <= sz.cy; i++)
if(cell[i].alloc != SVO_ALLOC) if(cell[i].alloc != SVO_ALLOC)
MemoryFree(cell[i].ptr); MemoryFree(cell[i].ptr);
} }
 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)