- Status Closed
- Percent Complete
- Task Type Patches
- Category
- Assigned To No-one
- Operating System
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
Opened by linusnielsen - 2006-01-21
Last edited by linusnielsen - 2006-01-28
FS#2934 - Color BMP support
Here is my first stab at color BMP support in Rockbox.
The read_bmp_file() function can now load both
monochrome and (24-bit) color BMP's. You can select
which format the BMP shall be stored in, either
FORMAT_MONO, FORMAT_NATIVE or FORMAT_ANY.
The read_bmp_file() function populates a bitmap struct
with the width, height, data pointer and the format, so
the application can select the proper lcd_bitmap
function to draw it.
The WPS is updated to make use of this and can now show
both monochrome and color BMP's.
Known issues:
1) Only 24-bit color BMP's supported yet
2) The rwps crashes if it tries to display a color BMP.
This is because the rwps shares images with the wps,
but doesn't know the bit depth of the attached screen.
Check it out and give me comments.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Linus, is there a hardcoded transparency color?
If not, we need one, cause the WPS just shows BG as white
and covers all the text.
just add pink (255,0,255) as a transparent color… if somebody really want to use pink…than he/she should
use some color really close to pink (i.e: 254,0,255)
Psyche sent a BMP transparency patch on Misticriver on the
"RockBox Build - H300 Optimized DISCUSSION THREAD - Page 16
- MisticRiver :: For iriver Enthusiasts" thread.
http://www.misticriver.net/attachment.php?attachmentid=3509&d=1137963643
Your patch work very fine Linus.
Please commit it to CVS for users that can't compile.