From 0c216088531dc7a8b400cd93911bd031ff987107 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 21 Dec 2014 02:09:09 -0500 Subject: [PATCH] Made toCheckboxRect() take the xoff parameter too. --- wintable/new/coord.h | 2 +- wintable/new/draw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wintable/new/coord.h b/wintable/new/coord.h index f0a0ec2..52a70c9 100644 --- a/wintable/new/coord.h +++ b/wintable/new/coord.h @@ -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) diff --git a/wintable/new/draw.h b/wintable/new/draw.h index 2834ce7..47e6914 100644 --- a/wintable/new/draw.h +++ b/wintable/new/draw.h @@ -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;