~ubuntu-branches/ubuntu/quantal/usplash/quantal

Viewing all changes in revision 96.

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-04 21:41:36 UTC
  • Revision ID: james.westby@ubuntu.com-20090304214136-eeznhjdm2tzg5rc7
Tags: 0.5.30
* Providing a background image for all possible resolutions has become too
  cumbersome. Thus change theme definitions to be able to provide just a
  logo, its screen position, and an explicit theme size: (LP: #64147)
  - usplash-theme.h: Add new fields theme_width, theme_height, pixmap_x,
    pixmap_y. Bump THEME_VERSION for this.
  - usplash-theme.h: Add new functions usplash_theme_width() and
    usplash_theme_height() which usplash and themes should use instead of an
    explicit pixmap->width/height. These functions will return
    theme_{width,height} and fall back to the pixmap's dimensions if the
    theme size is 0.
  - libusplash.c: Implement above two functions, update the code to use them
    instead of the pixmap dimensions, and add the pixmap_{x,y} offset when
    drawing pixmap.
  - This will require all usplash themes to be rebuilt, define above
    four fields, and replace theme->pixmap->width() with
    usplash_theme_width(theme) (likewise for height). If you want to retain
    full screen pixmaps, just set all of those fields to 0.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: