rem: FRAME tintFrame=pSolarSysState->TintFrame;
add: RECT drect; FRAME tintFrame = pSolarSysState->TintFrame[0]; FRAME tintLine = pSolarSysState->TintFrame[1];
context: DrawPlanet (int x, int y, int dy, unsigned int rgb){	STAMP s;	UBYTE a = 128;	s.origin.x = x;	s.origin.y = y;	s.frame = pSolarSysState->TopoFrame;	DrawStamp (&s);	if (pSolarSysState->ShieldFrame != 0)	{		rgb = 0x1f << 10;		dy = GetFrameHeight (s.frame);		a = 200;	}	if (rgb)	{		UBYTE r, g, b;		DWORD p;		COUNT framew;		FRAME tintFrame=pSolarSysState->TintFrame;		if (rgb != pSolarSysState->Tint_rgb)		{			DWORD clear;			pSolarSysState->Tint_rgb=rgb;			clear = frame_mapRGBA (tintFrame, 0, 0, 0, 0);			fill_frame_rgb (tintFrame, clear, 0, 0, 0, 0);		}		framew = GetFrameWidth (tintFrame);		r = (rgb & (0x1f << 10)) >> 8;		g = (rgb & (0x1f << 5)) >> 3;		b = (rgb & 0x1f) << 2;		p = frame_mapRGBA (tintFrame, r, g, b, a);		fill_frame_rgb (tintFrame, p, 0, 0, framew, dy);		s.frame = tintFrame;		DrawStamp (&s);	}}