Made toCheckboxRect() take the xoff parameter too.

This commit is contained in:
Pietro Gagliardi 2014-12-21 02:09:09 -05:00
parent 89fb2e8c6c
commit 0c21608853
2 changed files with 2 additions and 2 deletions

View File

@ -161,4 +161,4 @@ static void toCellContentRect(struct table *t, RECT *r, LRESULT xoff, intptr_t w
r->bottom = r->top + height;
}
#define toCheckboxRect(t, r) toCellContentRect(t, r, 0, t->checkboxWidth, t->checkboxHeight)
#define toCheckboxRect(t, r, xoff) toCellContentRect(t, r, xoff, t->checkboxWidth, t->checkboxHeight)

View File

@ -54,7 +54,7 @@ static void drawCell(struct table *t, HDC dc, struct drawCellParams *p)
panic("error drawing Table cell text");
break;
case tableColumnCheckbox:
toCheckboxRect(t, &r);
toCheckboxRect(t, &r, p->xoff);
SetDCBrushColor(dc, RGB(255, 0, 0));
FillRect(dc, &r, GetStockObject(DC_BRUSH));
break;