summaryrefslogtreecommitdiffstats
path: root/src/splash-plugins
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-14 08:59:33 -0400
committerRay Strode <rstrode@redhat.com>2008-05-14 08:59:33 -0400
commitd0698efdb6b894ef91a32e50fecfc1712456a7f4 (patch)
treef6461d44e38c87c91aa9e5195cbeec3f9307f77c /src/splash-plugins
parent34b71dbfef2af8b26bf0329e25440828fa83ca38 (diff)
downloadplymouth-d0698efdb6b894ef91a32e50fecfc1712456a7f4.tar.gz
plymouth-d0698efdb6b894ef91a32e50fecfc1712456a7f4.tar.xz
plymouth-d0698efdb6b894ef91a32e50fecfc1712456a7f4.zip
fix some confusion with star placement in fedora-fade-in plugin
We did logo_width - frame_buffer_width instead of the other way around, so we ended up with a negative width
Diffstat (limited to 'src/splash-plugins')
-rw-r--r--src/splash-plugins/fedora-fade-in/fedora-fade-in.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/splash-plugins/fedora-fade-in/fedora-fade-in.c b/src/splash-plugins/fedora-fade-in/fedora-fade-in.c
index 8d0d45d..0d6b926 100644
--- a/src/splash-plugins/fedora-fade-in/fedora-fade-in.c
+++ b/src/splash-plugins/fedora-fade-in/fedora-fade-in.c
@@ -406,15 +406,14 @@ add_star (ply_boot_splash_plugin_t *plugin)
assert (plugin != NULL);
- ply_frame_buffer_get_size (plugin->frame_buffer, &logo_area);
+ ply_frame_buffer_get_size (plugin->frame_buffer, &area);
width = ply_image_get_width (plugin->logo_image);
height = ply_image_get_height (plugin->logo_image);
- logo_area.x = (width / 2) - (logo_area.width / 2);
- logo_area.y = (height / 2) - (logo_area.height / 2);
+ logo_area.x = (area.width / 2) - (width / 2);
+ logo_area.y = (area.height / 2) - (height / 2);
logo_area.width = width;
logo_area.height = height;
- ply_frame_buffer_get_size (plugin->frame_buffer, &area);
width = ply_image_get_width (plugin->star_image);
height = ply_image_get_height (plugin->star_image);