libfreerdp-gdi: remove unused variables.

This commit is contained in:
Vic Lee 2011-08-11 15:04:29 +08:00
parent 213203f188
commit 7ad63ba900
3 changed files with 0 additions and 23 deletions

View File

@ -608,14 +608,10 @@ void gdi_multi_opaque_rect(rdpUpdate* update, MULTI_OPAQUE_RECT_ORDER* multi_opa
void gdi_line_to(rdpUpdate* update, LINE_TO_ORDER* line_to)
{
int cx, cy;
uint32 color;
HGDI_PEN hPen;
GDI *gdi = GET_GDI(update);
cx = line_to->nXEnd - line_to->nXStart + 1;
cy = line_to->nYEnd - line_to->nYStart + 1;
color = gdi_color_convert(line_to->penColor, gdi->srcBpp, 32, gdi->clrconv);
hPen = gdi_CreatePen(line_to->penStyle, line_to->penWidth, (GDI_COLOR) color);
gdi_SelectObject(gdi->drawing->hdc, (HGDIOBJECT) hPen);

View File

@ -374,7 +374,6 @@ int gdi_InvalidateRegion(HGDI_DC hdc, int x, int y, int w, int h)
GDI_RECT inv;
GDI_RECT rgn;
HGDI_RGN invalid;
HGDI_BITMAP bmp;
if (hdc->hwnd == NULL)
return 0;
@ -383,7 +382,6 @@ int gdi_InvalidateRegion(HGDI_DC hdc, int x, int y, int w, int h)
return 0;
invalid = hdc->hwnd->invalid;
bmp = (HGDI_BITMAP) hdc->selectedObject;
if (invalid->null)
{

View File

@ -45,8 +45,6 @@ static void Ellipse_Bresenham(HGDI_DC hdc, int x1, int y1, int x2, int y2)
long e, e2;
long dx, dy;
int a, b, c;
int bx1, by1;
int bx2, by2;
HGDI_BITMAP bmp;
uint8 pixel8;
@ -82,21 +80,6 @@ static void Ellipse_Bresenham(HGDI_DC hdc, int x1, int y1, int x2, int y2)
pixel32 = 0;
bmp = (HGDI_BITMAP) hdc->selectedObject;
if (hdc->clip->null)
{
bx1 = (x1 < x2) ? x1 : x2;
by1 = (y1 < y2) ? y1 : y2;
bx2 = (x1 > x2) ? x1 : x2;
by2 = (y1 > y2) ? y1 : y2;
}
else
{
bx1 = hdc->clip->x;
by1 = hdc->clip->y;
bx2 = bx1 + hdc->clip->w - 1;
by2 = by1 + hdc->clip->h - 1;
}
do
{
if (bpp == 32)