Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Changing the Splash Screen on New Builds vs Last Year's
« previous next »
  • Print
Pages: [1]

Author Topic: Changing the Splash Screen on New Builds vs Last Year's  (Read 2534 times)

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Changing the Splash Screen on New Builds vs Last Year's
« on: February 08, 2008, 07:01:08 AM »
I'm not very experienced, but on my previous build of rockbox which is from may 2007 I was able to replace the splash screen simply by replacing the rockboxlogo.320.98.16.bmp image in apps/bitmaps/native

I even used a 320x240 pixel image and it would work, except I would have a blue horizontal bar abour 10-15 pixels thick at the top.

However, with the recent builds, if I replace the rockboxlogo.320.98.16.bmp file it has no effect - I compile it, and then when I boot my device, I just get the old rockbox splash logo.  

What do I need to do to replace the logo with recent builds?  Am I restricted to 320x98 images?  

ALSO - If I am limited to a 320x98 image, how can I change the bakcground colour of the splash screen - by default it's a cyan blue, and I want to make it black to match my custom logo.  

Thanks
« Last Edit: February 08, 2008, 07:03:55 AM by johnnyhaggis »
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #1 on: February 08, 2008, 07:25:26 AM »
I've never changed the splash screen, so I'm assuming the way you're doing it is right.

C source files are generated from the bitmaps, and those are then compiled.  If you compiled a version with the stock image, the Makefile may not have picked up on the changed bitmap, and consequently you'd still be using the old .c file. Doing a "make clean" should clear out all the old files and let you start from scratch, or you can find and delete the rockboxlogo.320.98.16.c and rockboxlogo.320.98.16.o files in your build directory, forcing it to be recompiled.

Just a guess.
Logged

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #2 on: February 08, 2008, 07:37:45 AM »
Thanks! - is "make clean" a command (i.e. I just type "make clean" instead of "make" to compile?

« Last Edit: February 08, 2008, 07:44:39 AM by johnnyhaggis »
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #3 on: February 08, 2008, 07:40:47 AM »
Yes, "make clean" is a command, but it will _only_ clean the build directory of intermediate files, it will not compile, so you need to still do "make" afterwards.
Logged

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #4 on: February 08, 2008, 07:46:07 AM »
Oh wait - before trying make clean or deleting the relevant c files,  I recompiled it but using a 320x98 image instead of a 320-240 full screen image and it worked this time.   Is there any reason why it would reject full screen images, and how would I change that?  

Also how do I change the position of the bmp to the center instead of middle top, and how do I change the background colour at the splash screen?  Where are the tags that determine these aspects?
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #5 on: February 08, 2008, 07:52:18 AM »
I don't really know, I'll have to set up a build environment and fiddle around. Someone else can probably help you in the meantime though.

Did you leave the filename for the 320x240 bitmap the same (i.e. rockboxlogo.320.98.16.bmp) ?
Logged

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #6 on: February 08, 2008, 08:34:05 AM »
Yes I did - however, I discovered what the problem is - I'm a complete idiot and was working late at night while my brain was asleep - I forgot to add the compiled rockbox.ipod file I had just made and thus was just using the regular daily build - duh...

So the  320x240 image works just like it used to - however that means I still have the problem of having the cyan horizontal bar at the top of the screen.

I'm pretty sure this has to do with the positioning instruction for the original logo image, because the original logo leaves exactly that much space at the top of the screen, and the background colour is cyan.  My 320x240 logo is probably just shifted down a bit, leaving space at the top.

So now my two questions are -

1) where can I find/change the positioning instructions for the boot logo so I can center it, and
2) How do I change the background colour for the splash screen?

Thanks!


*** EDIT(a few hours later)

Ah - I found the solution to the positioning problem

In the misc.c file in the source you have to replace

lcd_bitmap(rockboxlogo, 0, 10,

with

lcd_bitmap(rockboxlogo, 0, 0,

The second figure being the vertial position of the logo.

That makes the background colour question somewhat obsolete since my logo now covers it, however I'm still curious and clueless as to changing the background colour on the splash - I think I'll start a new thread since I have a different question that sort of elates to that anyhow.

Thanks for your help!
« Last Edit: February 08, 2008, 11:09:08 AM by johnnyhaggis »
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #7 on: February 08, 2008, 03:54:43 PM »
I've never found out how to change the background color then again I never needed to.
Another thing I alter on the splash screen is the version info at the bottom:

In the misc.c a few lines above the first line you altered change the following:

Code: [Select]
snprintf(version, sizeof(version), "Ver. %s", appsversion);
TO
snprintf(version, sizeof(version), "", appsversion);

It gives an error about zero length string but it still compiles fine.
Logged

Offline johnnyhaggis

  • Member
  • *
  • Posts: 27
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #8 on: February 08, 2008, 03:57:10 PM »
Cool!  The version number on mine pops up in a cyan bar on the bottom and distrurbs the glory of my boot sreen.  

Will eliminating the version number as you say get rid of the blue bar on the bottom too?  Or is it just an empty space?
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: Changing the Splash Screen on New Builds vs Last Year's
« Reply #9 on: February 08, 2008, 06:59:40 PM »
ZERO cyan my man.

The only thing that will be displayed on boot is your image.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Changing the Splash Screen on New Builds vs Last Year's
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.072 seconds with 15 queries.