summaryrefslogtreecommitdiffstats
path: root/views/painter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/painter.cc')
-rw-r--r--views/painter.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/painter.cc b/views/painter.cc
index f39317d..5b2fc12 100644
--- a/views/painter.cc
+++ b/views/painter.cc
@@ -11,6 +11,7 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/insets.h"
+#include "ui/gfx/point.h"
namespace views {
@@ -149,7 +150,7 @@ void Painter::PaintPainterAt(int x, int y, int w, int h,
if (w < 0 || h < 0)
return;
canvas->Save();
- canvas->TranslateInt(x, y);
+ canvas->Translate(gfx::Point(x, y));
painter->Paint(w, h, canvas);
canvas->Restore();
}