diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 09:53:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 09:53:44 -0400 |
| commit | 8f4788d506c4d1a054b2b713510b021f8f101ea6 (patch) | |
| tree | 03a288cfea9aeb821ea27190d33ec68a000e8073 /new/windows/button.c | |
| parent | 54c5d551f0d994b6ebb177e2542190220d6638bc (diff) | |
Fixed some build errors in the Windows backend.
Diffstat (limited to 'new/windows/button.c')
| -rw-r--r-- | new/windows/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/new/windows/button.c b/new/windows/button.c index d216d79..fd7afa3 100644 --- a/new/windows/button.c +++ b/new/windows/button.c @@ -63,7 +63,7 @@ static void defaultOnClicked(uiButton *b, void *data) static char *getText(uiButton *b) { - return uiWindowsControlText(uiControl(c)); + return uiWindowsControlText(uiControl(b)); } static void setText(uiButton *b, const char *text) @@ -71,9 +71,9 @@ static void setText(uiButton *b, const char *text) uiWindowsControlSetText(uiControl(b), text); } -static void setOnClicked(uiButton *b, void (*f)(uiButton *, void *), void *data) +static void setOnClicked(uiButton *bb, void (*f)(uiButton *, void *), void *data) { - struct button *b = (struct button *) b; + struct button *b = (struct button *) bb; b->onClicked = f; b->onClickedData = data; |
