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->ScaledImg)
|
||||||
{
|
{
|
||||||
if (img->scale != gscale || img->dirty)
|
if (img->scale != gscale)
|
||||||
{
|
{
|
||||||
SDL_FreeSurface(img->ScaledImg);
|
SDL_FreeSurface(img->ScaledImg);
|
||||||
img->ScaledImg = NULL;
|
img->ScaledImg = NULL;
|
||||||
@@ -76,10 +76,7 @@ blt (PRECT pClipRect, PRIMITIVEPTR PrimPtr)
|
|||||||
|
|
||||||
if (!img->ScaledImg)
|
if (!img->ScaledImg)
|
||||||
{
|
{
|
||||||
// Atleast melee zooming and planet surfaces will use this
|
// atleast melee zooming uses this
|
||||||
|
|
||||||
// NOTE: Planet surfaces maybe causes memory leaks,
|
|
||||||
// I haven't currently seen DELETEIMAGE executed to them at all.
|
|
||||||
|
|
||||||
SDL_Surface *new_surf;
|
SDL_Surface *new_surf;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user