diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-07-29 00:52:37 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-07-29 00:52:37 +0200 |
| commit | 6556f7b3bf2beaabc00eeec6fa30a8bffc0a36a7 (patch) | |
| tree | 4274b0ba56c5ae5e8c72d5d6d7aa9c626551ae38 /unity-shared | |
| parent | 07c5cb0174316e5224d62a8b13a614dd2cf8a714 (diff) | |
Lockscreen: some cleanup
(bzr r3844.10.25)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/TextInput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unity-shared/TextInput.cpp b/unity-shared/TextInput.cpp index a3cfda4f0..b68cb2794 100644 --- a/unity-shared/TextInput.cpp +++ b/unity-shared/TextInput.cpp @@ -313,9 +313,9 @@ void TextInput::LoadWarningTooltip() extents.height += TOOLTIP_OFFSET; nux::CairoGraphics cg(CAIRO_FORMAT_ARGB32, RawPixel(extents.width).CP(scale), RawPixel(extents.height).CP(scale)); + cairo_surface_set_device_scale(cg.GetSurface(), scale, scale); cairo_t* cr = cg.GetInternalContext(); - cairo_surface_set_device_scale(cairo_get_target(cr), scale, scale); gtk_render_background(style_context, cr, 0, 0, extents.width, extents.height); gtk_render_frame(style_context, cr, 0, 0, extents.width, extents.height); gtk_render_layout(style_context, cr, TOOLTIP_OFFSET/2, TOOLTIP_OFFSET/2, layout); @@ -434,8 +434,8 @@ void TextInput::UpdateBackground(bool force) last_height_ = geo.height; nux::CairoGraphics cairo_graphics(CAIRO_FORMAT_ARGB32, last_width_, last_height_); + cairo_surface_set_device_scale(cairo_graphics.GetSurface(), scale, scale); cairo_t* cr = cairo_graphics.GetInternalContext(); - cairo_surface_set_device_scale(cairo_get_target(cr), scale, scale); cairo_graphics.DrawRoundedRectangle(cr, 1.0f, |
