Commit Graph
404 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub b72d829e23 Merge pull request #3 from EdgeTX/fix-164
Use EVT_KEY_FIRST(KEY_EXIT) instead of EVT_KEY_BREAK() in FormGroup
2021-06-10 15:27:44 +02:00
Raphael Coeffic 76a3886a03 Use EVT_KEY_FIRST(KEY_EXIT) instead of EVT_KEY_BREAK() in FormGroup
This prevents the TabGroup from catching the event first, and thus quit the complete page.
Resolves EdgeTX/edgetx#164
2021-06-09 07:22:33 +02:00
Raphael Coeffic d535136648 Merge branch 'menu-default-select' 2021-06-07 10:44:42 +02:00
Raphael Coeffic 20f026eef5 Added BSD license for the implementation of drawFilledTriangle() 2021-06-07 08:58:49 +02:00
Raphael Coeffic 8d02f3884a [Menu] added setFocusBody() 2021-06-06 13:53:05 +02:00
Raphael Coeffic 880a514f18 [Menu] select the first element by default, even if hardware touch is supported 2021-06-06 12:21:50 +02:00
Raphael Coeffic 9962dd0092 [FileChoice] Added extension stripping (optional) 2021-06-06 10:13:01 +02:00
Raphael Coeffic ae5a84cd6c Fix drawBitmapPatternPie()
Masks are stored in 8-bit format, but drawAlphaPixel() uses only 4-bit alpha.
2021-06-06 07:39:17 +02:00
Raphael CoefficandGitHub d476e6abb1 Merge pull request #2 from EdgeTX/draw-routines-added
Added drawFilledTriangle()
2021-06-05 21:28:02 +02:00
olliw42andRaphael Coeffic 32cf4739e1 Added drawFilledTriangle() 2021-06-02 16:39:46 +02:00
Raphael Coeffic 675773bcfb Disable Theme::drawMessageBox() 2021-05-30 17:28:23 +02:00
Raphael Coeffic 8692796dd5 Add safeguards for drawText() & drawSizedText() 2021-05-30 17:27:48 +02:00
Raphael Coeffic ff35b89543 Reset touch state before calling onTouchEnd()
In case something calls MainWindow::run() during the execution of this handler. Otherwise it will generate a second touch-end event, on whatever is on the screen at this moment.
2021-05-27 22:27:58 +02:00
Raphael Coeffic a3923c35b9 FileChoice: openMenu() after setFocus()
Otherwise, whatever is opened by the menu will loose the focus
2021-05-24 19:10:02 +02:00
Raphael Coeffic 18025279c1 Use EVT_KEY_FIRST on Button 2021-05-23 08:48:17 +02:00
Raphael Coeffic 52b3388062 lcdRefresh() already does switch the layers, no need to do it 2 steps 2021-05-22 18:18:25 +02:00
Raphael Coeffic 67ede465aa Added Liang-Barsky Line Clipping 2021-05-22 16:57:04 +02:00
Raphael Coeffic e7b6fa412c Apply clipping in BitmapBuffer::invertRect() 2021-05-22 14:25:09 +02:00
Raphael Coeffic 749d7d9037 Added 8bit PNG font loader 2021-05-21 20:59:33 +02:00
Raphael Coeffic 2d6ebc2ec1 Added loading png bitmaps from memory 2021-05-15 11:21:52 +02:00
Raphael Coeffic f603207a8e Added 8bit mask loading 2021-05-15 01:09:57 +02:00
Raphael Coeffic 6a492d9777 Silence compiler warnings 2021-05-09 09:29:11 +02:00
Raphael Coeffic 1964d2ae8c Check boundaries on characters / fonts 2021-05-08 08:37:53 +02:00
Raphael Coeffic 5403ab4b00 Filter out invalid chars to avoid out-of-bounds memory access 2021-05-08 00:21:58 +02:00
Raphael Coeffic c25d599393 Fixes for new Stb version
As it seems, RGB888 bitmap are now declared as ARGB8888, as load_stb() requests 4 bytes / pixel.
Now, real grayscale is used instead of just using "red" as alpha, as was previously done.
2021-05-07 23:58:20 +02:00
Raphael Coeffic 7b63477300 Cleanup notes 2021-05-07 22:41:43 +02:00
Raphael Coeffic 21940b1572 Fixed clipping in drawBitmapPattern() 2021-05-07 22:41:43 +02:00
Raphael Coeffic 76cdb7f527 Cleanup 2021-05-07 22:41:43 +02:00
Raphael Coeffic a1cfe638b3 WiP: works with radio 2021-05-07 22:41:43 +02:00
Raphael Coeffic ff71826fbc Use full range in 8bit encoding 2021-05-07 22:41:43 +02:00
Raphael Coeffic 347bc76b2b Move some big template methods into .cpp with explicit instantiation 2021-05-07 22:41:43 +02:00
Raphael Coeffic 7510577dfc Use DMA ops for blending in drawFilledRect() 2021-05-07 22:41:43 +02:00
Raphael Coeffic 596ef31384 ColorEdit shall use it's own color instead of modifying the color table 2021-05-07 22:41:43 +02:00
Raphael Coeffic d274f6ac7f Remove the color table 2021-05-07 22:41:43 +02:00
Raphael Coeffic 0faa189984 Fixed 'opacity' default parameters 2021-05-07 22:41:43 +02:00
Raphael Coeffic 7ca1f0d74c Fix modal window opacity 2021-05-07 22:41:43 +02:00
Raphael Coeffic e251f63a35 Removed color table and added the list of colors to be defined 2021-05-07 22:41:43 +02:00
Raphael Coeffic 8ec57dd39e Move opacity in a separate parameter and use true color instead of palette index 2021-05-07 22:41:43 +02:00
Bertrand Songis 784bf73ae9 STB issue on H7 makes me revert to the latest working commit for now 2021-05-06 08:43:34 +02:00
Bertrand Songis 5d9f18a8af STB errors traced 2021-05-05 11:04:38 +02:00
Bertrand Songis c445be3dad Use latest stb as submodule 2021-05-03 12:34:38 +02:00
Bertrand Songis 7117fe1ff5 Malloc alignment to 32bits for H7 2021-04-30 12:04:19 +02:00
Bertrand Songis 53d73a7952 Cosmetics 2021-04-27 09:10:49 +02:00
Bertrand Songis 2cc3c41505 Merge of PR#12 2021-04-16 17:34:38 +02:00
Bertrand SongisandGitHub a65c75859f Merge pull request #14 from raphaelcoeffic/scroll-virtual
Make setScrollPosition[X/Y]() virtual
2021-04-16 16:37:17 +02:00
Raphael Coeffic ff2a0754d4 Make setScrollPosition[X/Y]() virtual
This allows for effects implemented in a specific window, like a sticky component that follows the screen wherever it goes.
2021-04-16 13:27:52 +02:00
Bertrand Songis 46a47f225b Cosmetics 2021-04-11 16:21:11 +02:00
Bertrand Songis 910d1420e7 Add more clipping 2021-04-11 13:03:21 +02:00
Bertrand Songis 125a0b8266 Add more clipping 2021-04-11 11:58:38 +02:00
Bertrand Songis 41c5a2fe7c Merge with latest 2.3 2021-04-07 15:30:48 +02:00