FreeCalypso > hg > fc-tourmaline
view src/cs/drivers/drv_app/r2d/r2d_onoff.c @ 265:e57bfdadf49a
mmiIcons.c: fix bogus icnType in incoming_call_animate[]
The incoming call animation icons are actually drawn in 256-color format,
but they were incorrectly declared as BMP_FORMAT_32BIT_COLOUR in the
incoming_call_animate[] array. Why were they still getting displayed
correctly despite this bogosity? Answer: because the
mmi_dialogs_animation_new_CB() function overrides the icon bitmap
type to 0x02, which means 256-color format. Needless to say, the
icon format should be made correct at the source of the data, and
at some later point we may need to remove the override from the
animation display function.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 17 May 2021 07:18:36 +0000 |
parents | 6541e43f88e5 |
children | 0196b6bf633c |
line wrap: on
line source
/* * This FreeCalypso-added R2D module implements on/off control * for BLRR (backlight required for readability) displays. */ #include "rv/rv_general.h" #include "r2d/r2d_config.h" #include "r2d/r2d_messages.h" #include "r2d/r2d_blrr_api.h" #ifdef CONFIG_TARGET_LUNA #include "r2d/lcds/luna/r2d_onoff_i.c" #elif defined(CONFIG_TARGET_C139) #include "r2d/lcds/c139/r2d_onoff_i.c" #else #error "R2D on/off module selection: unsupported target" #endif void r2d_process_onoff_message(T_R2D_EVT *msg) { r2d_onoff_action(msg->status); }