Optimize redraw on key release.

This commit is contained in:
Daiki Ueno
2011-03-08 05:53:00 +09:00
parent 85a1a6ba24
commit d8e691d3f5
2 changed files with 18 additions and 18 deletions

View File

@ -635,7 +635,6 @@ eek_renderer_real_render_keyboard (EekRenderer *self,
cairo_t *cr)
{
EekRendererPrivate *priv = EEK_RENDERER_GET_PRIVATE(self);
EekColor background;
g_return_if_fail (priv->keyboard);
g_return_if_fail (priv->allocation_width > 0.0);
@ -644,23 +643,6 @@ eek_renderer_real_render_keyboard (EekRenderer *self,
if (!priv->keyboard_surface)
priv->keyboard_surface = create_keyboard_surface (self);
/* blank background */
eek_renderer_get_background_color (self,
EEK_ELEMENT(priv->keyboard),
&background);
cairo_set_source_rgba (cr,
background.red,
background.green,
background.blue,
background.alpha);
cairo_rectangle (cr,
0.0,
0.0,
priv->allocation_width,
priv->allocation_height);
cairo_fill (cr);
cairo_set_source_surface (cr, priv->keyboard_surface, 0.0, 0.0);
cairo_paint (cr);
}