summaryrefslogtreecommitdiffstats
path: root/win/tkWinDraw.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-16 16:33:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-16 16:33:50 (GMT)
commit22f8312f1177e98133c31e059d6f1ae948178f37 (patch)
treee984d3f416896b6823505e01ca26920799b1134f /win/tkWinDraw.c
parent871d0ab87051648f1dcc4fc86445dcde3527c7b2 (diff)
parent3dd24b804c90d0421a7200b2a2b04794887b95fa (diff)
downloadtk-22f8312f1177e98133c31e059d6f1ae948178f37.zip
tk-22f8312f1177e98133c31e059d6f1ae948178f37.tar.gz
tk-22f8312f1177e98133c31e059d6f1ae948178f37.tar.bz2
Merge 8.7. More WIP.
Diffstat (limited to 'win/tkWinDraw.c')
-rw-r--r--win/tkWinDraw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index 1257d46..b21376a 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -244,7 +244,7 @@ ConvertPoints(
if (tsdPtr->winPoints != NULL) {
ckfree(tsdPtr->winPoints);
}
- tsdPtr->winPoints = ckalloc(sizeof(POINT) * npoints);
+ tsdPtr->winPoints = (POINT *)ckalloc(sizeof(POINT) * npoints);
if (tsdPtr->winPoints == NULL) {
tsdPtr->nWinPoints = -1;
return NULL;
@@ -987,6 +987,7 @@ XFillPolygon(
HPEN pen;
TkWinDCState state;
HDC dc;
+ (void)shape;
if (d == None) {
return BadDrawable;
@@ -1407,6 +1408,7 @@ TkScrollWindow(
{
HWND hwnd = TkWinGetHWND(Tk_WindowId(tkwin));
RECT scrollRect;
+ (void)gc;
scrollRect.left = x;
scrollRect.top = y;
@@ -1483,6 +1485,8 @@ TkpDrawHighlightBorder(
int highlightWidth,
Drawable drawable)
{
+ (void)bgGC;
+
TkDrawInsetFocusHighlight(tkwin, fgGC, highlightWidth, drawable, 0);
}