diff options
| author | MC Return <mc.return@gmx.net> | 2012-11-16 20:22:31 +0100 |
|---|---|---|
| committer | MC Return <mc.return@gmx.net> | 2012-11-16 20:22:31 +0100 |
| commit | f2da13b0d5ba2a95759bf460a7ffdf719236a060 (patch) | |
| tree | 031b9b3760faf9fdf9dcb533f57f2a012cbdbe9f /dash/previews | |
| parent | 53012a6597b4c4e1bc4f58c4e9d1ad11b5484118 (diff) | |
Removed useless calculation of adding x (0.0f) to tailPosition and reduced the scope of double x as well
(bzr r2904.2.2)
Diffstat (limited to 'dash/previews')
| -rw-r--r-- | dash/previews/SocialPreviewContent.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dash/previews/SocialPreviewContent.cpp b/dash/previews/SocialPreviewContent.cpp index 5569944e8..62226cc92 100644 --- a/dash/previews/SocialPreviewContent.cpp +++ b/dash/previews/SocialPreviewContent.cpp @@ -169,16 +169,15 @@ void SocialPreviewContent::UpdateBaloonTexture() void SocialPreviewContent::RedrawBubble(nux::Geometry const& geom, cairo_t* cr, nux::ButtonVisualState faked_state) { - double x = 0.0; - double width = MAX(0, cairo_image_surface_get_width(cairo_get_target(cr))); double height = MAX(0, cairo_image_surface_get_height(cairo_get_target(cr)) - TAIL_HEIGHT); - double tailPosition = x + width - TAIL_POS_FROM_RIGHT - TAIL_HEIGHT; + double tailPosition = width - TAIL_POS_FROM_RIGHT - TAIL_HEIGHT; if (width > 0 && height > 0) { double line_width = 6.0; double radius = 28.0; + double x = 0.0; double y = 0.0; DrawBubble(cr, line_width, radius, x, y, width, height, tailPosition, TAIL_HEIGHT); |
