diff options
Diffstat (limited to 'gtk/PlatGTK.cxx')
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 9a5e0e2d2..c1e5566e5 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -227,7 +227,7 @@ Point Point::FromLong(long lpoint) { } static void SetLogFont(LOGFONT &lf, const char *faceName, int characterSet, float size, int weight, bool italic) { - memset(&lf, 0, sizeof(lf)); + lf = LOGFONT(); lf.size = size; lf.weight = weight; lf.italic = italic; @@ -735,7 +735,7 @@ void SurfaceImpl::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesi Point(rc.left, rc.bottom - 2), Point(rc.left, rc.top + 2), }; - Polygon(pts, sizeof(pts) / sizeof(pts[0]), fore, back); + Polygon(pts, ELEMENTS(pts), fore, back); } else { RectangleDraw(rc, fore, back); } |
