Disabled img->dirty for now, it interfered badly with planet surface
zooming; cleaned some old comments git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@686 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -67,7 +67,7 @@ blt (PRECT pClipRect, PRIMITIVEPTR PrimPtr)
|
||||
|
||||
if (img->ScaledImg)
|
||||
{
|
||||
if (img->scale != gscale || img->dirty)
|
||||
if (img->scale != gscale)
|
||||
{
|
||||
SDL_FreeSurface(img->ScaledImg);
|
||||
img->ScaledImg = NULL;
|
||||
@@ -76,10 +76,7 @@ blt (PRECT pClipRect, PRIMITIVEPTR PrimPtr)
|
||||
|
||||
if (!img->ScaledImg)
|
||||
{
|
||||
// Atleast melee zooming and planet surfaces will use this
|
||||
|
||||
// NOTE: Planet surfaces maybe causes memory leaks,
|
||||
// I haven't currently seen DELETEIMAGE executed to them at all.
|
||||
// atleast melee zooming uses this
|
||||
|
||||
SDL_Surface *new_surf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user