diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-07-05 19:11:51 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-07-05 19:11:51 +0200 |
| commit | 2c6ddbd0e9e895ea1ee28d766577f45bf261e918 (patch) | |
| tree | 868779d376e33104eb9c2abd4a99471016887771 /dash | |
| parent | 3a24b0c5fca758242e025aee0f0c2ad9dbe15fa9 (diff) | |
ActionButton: set the button device scaling, to make sure they get properly scaled
(bzr r3830.3.8)
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/previews/ActionButton.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dash/previews/ActionButton.cpp b/dash/previews/ActionButton.cpp index 09d4d663a..2a394d3a5 100644 --- a/dash/previews/ActionButton.cpp +++ b/dash/previews/ActionButton.cpp @@ -195,11 +195,13 @@ void ActionButton::BuildLayout(std::string const& label, std::string const& icon void ActionButton::RedrawTheme(nux::Geometry const& geom, cairo_t* cr, nux::ButtonVisualState faked_state) { + cairo_surface_set_device_scale(cairo_get_target(cr), scale, scale); Style::Instance().Button(cr, faked_state, "", -1, Alignment::CENTER, true); } void ActionButton::RedrawFocusOverlay(nux::Geometry const& geom, cairo_t* cr) { + cairo_surface_set_device_scale(cairo_get_target(cr), scale, scale); Style::Instance().ButtonFocusOverlay(cr, 0.20f); } |
