summaryrefslogtreecommitdiff
path: root/apps/gui/color_picker.c (follow)
Commit message (Collapse)AuthorAge
* lcd-24bit: Introduce a 24-bit mid-level LCD driverThomas Martitz2014-06-21
| | | | | | | | | | | | | | | | | With LCD driver all calculation will be performed on RGB888 and the hardware/OS can display from our 24bit framebuffer. It is not yet as performance optimized as the existing drivers but should be good enough.The vast number of small changes is due to the fact that fb_data can be a struct type now, while most of the code expected a scalar type. lcd-as-memframe ASM code does not work with 24bit currently so the with 24bit it enforces the generic C code. All plugins are ported over. Except for rockpaint. It uses so much memory that it wouldnt fit into the 512k plugin buffer anymore (patches welcome). Change-Id: Ibb1964545028ce0d8ff9833ccc3ab66be3ee0754
* Changed the FOR_NB_SCREENS macro to always be a for loop that declares its ↵Björn Stenberg2011-10-15
| | | | | | own loop variable. This removes the need to declare this variable in the outer scope. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657
* color_picker: a bit of rework for color_picker.Teruaki Kawashima2010-02-11
| | | | | | | | * don't call display->getcharheight() so often, store the value to char_height and use it instead. * replay title_height by char_height, they should be the same. * fix spaces. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24595 a1c6a512-1295-4272-9138-f99709370657
* fix text scrolling handling in do_menu, set_time_screen and time_screen.Teruaki Kawashima2010-02-11
| | | | | | Don't scroll text in time_screen(). the lines will be redrawn before scrolling statrs, so they don't scroll anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24591 a1c6a512-1295-4272-9138-f99709370657
* RTL: Cosmetic changes, no functional change - Rename constantsTomer Shalev2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23117 a1c6a512-1295-4272-9138-f99709370657
* Add a action helper for touchscreen targets to only receive the touchpress ↵Thomas Martitz2009-10-11
| | | | | | | | coordinates if they're in the passed viewport. Also, fixes the coordinates to be relaitve to the viewport. Use it in the color picker screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23116 a1c6a512-1295-4272-9138-f99709370657
* Clean up, simplify and fix small bugs in color picker.Thomas Martitz2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23111 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#9836 which fixes a bit of a display glitch in the colour chooser ↵Jonathan Gordon2009-02-02
| | | | | | (Thanks Teruaki) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19906 a1c6a512-1295-4272-9138-f99709370657
* "fix" FS#9757 by handing the statusbar redraw event more correctly... the ↵Jonathan Gordon2009-01-05
| | | | | | | | | eqscreen needs to be converted to viewports to display the statusbar. fix the colour chooser screen to work with the bar redraw also git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19680 a1c6a512-1295-4272-9138-f99709370657
* fix redPeter D'Hoye2008-09-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18442 a1c6a512-1295-4272-9138-f99709370657
* Change screens memebers char_width, char_height and nb_lines to functions ↵Peter D'Hoye2008-09-07
| | | | | | returning a calculated value. Fixes FS #9361 because the values were calculated based on sysfont, not the user selected font. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18441 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#9308: differentiate between TOUCHPAD & TOUCHSCREENMaurus Cuelenaere2008-08-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18338 a1c6a512-1295-4272-9138-f99709370657
* FS#9281 Rename of splash functions.Nils Wallménius2008-08-15
| | | | | | | | | | | | | | | | | | | | * Remove gui_splash() * Rename gui_syncsplash() to splashf() and remove its voice capabilities. * Rename the internal splash() to splash_internal() and introduce an externally visible splash() that handles simple splashing without printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ, "foo"); if a LANG_* id is passed it will be voiced. * Adjust all places that called gui_syncsplash() to use the correct variant from above. * Export both new functions to plugins and adjust places calling rb->splash() to use the correct variant so that we now have naming consistency between the core and plugins. * Fix one latent bug that would cause my sim to crash with the above changes and correct P2STR and P2ID macros, thanks to pondlife. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
* fix redPeter D'Hoye2008-06-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17859 a1c6a512-1295-4272-9138-f99709370657
* Remove a viewport ambiguity by changing the screens width/heigth members ↵Peter D'Hoye2008-06-28
| | | | | | into lcdwidth/lcdheight. Normal usercode should always use getwidth()/getheigth() as that returns the viewport width/height. Fixes issues that would have appeared in many places when introducing viewports with sizes != lcd sizes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17857 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* More static / header file cleanup.Bertrik Sikken2008-05-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17341 a1c6a512-1295-4272-9138-f99709370657
* Made source files #include the header file that they implement to make sure ↵Bertrik Sikken2008-05-03
| | | | | | they are in sync. Made some local functions static. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17312 a1c6a512-1295-4272-9138-f99709370657
* last minor fix for the colour screenJonathan Gordon2007-11-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15456 a1c6a512-1295-4272-9138-f99709370657
* minor touchpad tweaking...Jonathan Gordon2007-11-04
| | | | | | | | lists - dont do ACTION_STD_OK if pressing an area under the last item colour chooser - change the seelcted colour straight away without having to swicth sliders first git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15455 a1c6a512-1295-4272-9138-f99709370657
* touchpad interface for the colour selection screens.Jonathan Gordon2007-11-04
| | | | | | | voice the unacceptable colour splash (nice and pointless :p ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15454 a1c6a512-1295-4272-9138-f99709370657
* FS#7808 by Tom Ross, Ken Fazzone and me, with help from Antoine Cellerier.Nicolas Pennequin2007-09-27
| | | | | | | | | Add two new line selector types: solid colour and gradient. Solid colour only uses the primary colour setting. The secondary colour setting is used for the gradient. Text colour for the selected item is also changeable. These new settings are a bit controversial so they may be removed later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14868 a1c6a512-1295-4272-9138-f99709370657
* remove the need for action_signalscreenchange().Jonathan Gordon2007-07-22
| | | | | | | Fixes problems with targets where the ACTION_STD_CANCEL event is a combo git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13956 a1c6a512-1295-4272-9138-f99709370657
* Make the screen draw correctly with the user iconsetJonathan Gordon2007-06-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13619 a1c6a512-1295-4272-9138-f99709370657
* Customizable icons for all bitmap targets. (FS#7013)Jonathan Gordon2007-04-16
| | | | | | | http://www.rockbox.org/twiki/bin/view/Main/CustomIcons for info on format and how to load them git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13177 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold2007-03-16
| | | | | | 500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
* More color adjustments. Better translation to and from native colors with ↵Michael Sevakis2006-10-15
| | | | | | even distribution of levels. Macros for extracting native depth components and packing them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11227 a1c6a512-1295-4272-9138-f99709370657
* Added inner fill option to normal scrollbar and foreground only option. ↵Michael Sevakis2006-10-13
| | | | | | Added a left-pointing cursor for using pointer. Updated color picker and now sliders look very good on color, grayscale and mono screens when using bar selector. Some misc. changes for appearance. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11210 a1c6a512-1295-4272-9138-f99709370657
* Corrected the calculation to determine to display three sliders or one in ↵Michael Sevakis2006-10-12
| | | | | | the colorpicker. Same wonderment as before... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11197 a1c6a512-1295-4272-9138-f99709370657
* Fixed the problem with the backdrops on iPod. The same problem was in the ↵Michael Sevakis2006-10-11
| | | | | | updated color picker and that is fixed too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11195 a1c6a512-1295-4272-9138-f99709370657
* Made color picker work on x5 remote and display nicely when using backdrops. ↵Michael Sevakis2006-10-11
| | | | | | Also tweaked the appearance in general. Keymap still does not entirely function however (no inc/dec yet). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11193 a1c6a512-1295-4272-9138-f99709370657
* fixed the settings action context, time/eq/colour chooser/dbug screensJonathan Gordon2006-08-21
| | | | | | | should all work correctly again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10670 a1c6a512-1295-4272-9138-f99709370657
* Finally, the new button action system is here, thanks to Jonathan Gordon. ↵Linus Nielsen Feltzing2006-08-15
| | | | | | Some button mappings have changed and other things may break. Comments should go to the forum, http://forums.rockbox.org/index.php?topic=5829.0 or the mailing list. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10582 a1c6a512-1295-4272-9138-f99709370657
* Barry Wardell's keymappings for H10Daniel Stenberg2006-08-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10446 a1c6a512-1295-4272-9138-f99709370657
* X5 remote LCD drawing. This will break target linking atm - ↵Jens Arnold2006-07-28
| | | | | | lcd_remote_update[_rect]() are not yet implemented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10347 a1c6a512-1295-4272-9138-f99709370657
* Oops - fix warning and ensure bg_col is always set to a value.Dave Chapman2006-07-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10248 a1c6a512-1295-4272-9138-f99709370657
* Patch #5584 from Jonathan Gordon - fix the remote support for the colour pickerDave Chapman2006-07-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10247 a1c6a512-1295-4272-9138-f99709370657
* Patch by Jonathan Gordon for bug report FS#4861 - map Select (Navi) to save ↵Zakk Roberts2006-03-21
| | | | | | the settings in the color picker in addition to Play. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9143 a1c6a512-1295-4272-9138-f99709370657
* Patch 4765 by Jonathan Gordon - don't allow the same colors to be selected ↵Zakk Roberts2006-03-04
| | | | | | for foreground and background. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8900 a1c6a512-1295-4272-9138-f99709370657
* gigabeat related changesMarcoen Hirschberg2006-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8885 a1c6a512-1295-4272-9138-f99709370657
* Add iaudio x5 support to the color pickerDave Chapman2006-02-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8844 a1c6a512-1295-4272-9138-f99709370657
* Correct the id stringHristo Kovachev2006-02-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8841 a1c6a512-1295-4272-9138-f99709370657
* Foreground/Background colour settings. Based on patch #3050 by Jonathan ↵Dave Chapman2006-02-26
Gordon, extended my me. The principle of the patch is that the three sliders contain the native ranges (currently 0..31, 0..63, 0..31), and the equivalent RGB888 colour is displayed underneath. The config block (and global_settings struct) contain the native value for the fg/bg colours (either RGB565 or RGB565SWAPPED), but the text .cfg files contain the RGB888 value written as 6 hex digits. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8840 a1c6a512-1295-4272-9138-f99709370657