summaryrefslogtreecommitdiffstats
path: root/gui/console.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gui: make resources type safethat2015-02-151-27/+8
| | | | | | | | | | | - add string, int, color and resource loading helpers - use typed resource classes, and some cleanup in loading code - remove abstract GetResource() to enforce type safe access - add height and width query methods to resources and use them - minor cleanup - simplify LoadPlacement Change-Id: I9b81785109a80b3806ad6b50cba4d893b87b0db1
* gui: fix console lockup when scrollingthat2015-02-061-12/+12
| | | | | | Apparently fixing all the signed/unsigned warnings was good. :) Change-Id: I62faa23179e8b2436fe0d24d2152af341cd42fe9
* gui: fix IsInRegionthat2015-01-291-2/+2
| | | | | | | | (0,0) was inside the region of "locationless" action objects, leading to all kinds of strange behavior when clicking in the upper left corner. Change-Id: I222db4ff499f3c30605b05267f005accb2e0dc99
* Add support for TrueType fontsVojtech Bocek2014-10-141-1/+1
| | | | | | | | | | | | | * Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Add command line capabilitiesEthan Yonker2014-08-091-0/+10
| | | | | | | | | | | | | | | Allows sending openrecoveryscript commands to TWRP via shell. This may be handy for visually impaired users, for various one click utilities to drive TWRP commands from a computer, for using TWRP when a catastrophic hardware failure like a shattered screen prevents you from being able to use touch, or even on devices like a TV stick where touch and USB mouse input is unavailable. This patch also includes a few minor changes to openrecoveryscript including proper support for rebooting via the script and for decrypting the device via the command line. Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc
* Color in the consoleEthan Yonker2014-07-091-15/+49
| | | | | | | | Allow each gui_print command to specify a color Change LOGERR to use the error color Theme should specify colors for error, warning, and highlight Change-Id: Ie8ece34111f604e25fcb79e5b731cd4e61038ff9
* Remove size parameter from substr callEthan Yonker2014-03-071-1/+1
| | | | Change-Id: I2745bcf8f242fe4a1992aa547efaccf33db0fb5b
* Fix "\n\n" string in gui_print(), remove unused gui_print_overwrite()Vojtech Bocek2014-03-061-46/+8
| | | | | Change-Id: Ib23354a706013c8cee6665c720fa3b890f3fb3de Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Fix wordwrap in console eating last char if str.size() == max_line_lenVojtech Bocek2014-03-041-1/+1
| | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I4a23cd78bd63d63f4d6ec8f34dcc6eced824123b
* Add word wrap to console output and fix scrolling in consoleDees Troy2014-02-261-41/+49
| | | | Change-Id: Ibcf89952ee1391350c715f1ec82cf0cdb9b0ca7d
* Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek2014-02-121-1/+10
| | | | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
* Unify indentation and little clean-up in TWRP filesVojtech Bocek2013-08-241-307/+308
| | | | Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Console Render Bug caused by touch drag eventgordon13372013-06-081-0/+1
| | | | | | With starting the console the touch drag event is active without even touching the display. This causes to render the console at any time it is displayed, which consumes alot of battery and heats up the device. What the patch does is resetting the touch drag state to ensure it is only re-rendering the console when it it really needed.
* Move all AOSP code out of recovery binaryDees_Troy2013-04-041-2/+1
| | | | | | Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
* Fix a problem with scrolling in the consoleDees_Troy2012-09-261-1/+1
|
* Make text appear in GUI console, Zip install works.Dees_Troy2012-09-121-0/+4
| | | | | | | Move TW zip install code to C++ so that it can use the ui->functions. Bring in mincrypt code to fix a crash during signature checking.
* TWRP-ify AOSP codeDees_Troy2012-09-051-0/+398
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere