Commit Graph
384 Commits
Author SHA1 Message Date
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
Bertrand Songis e3f56def2c [Carousel] Cosmetics 2021-04-06 15:22:10 +02:00
Bertrand Songis e7bcd7b852 [Carousel] Protection 2021-04-06 15:16:24 +02:00
Bertrand Songis da2215d01e MainWindow::create() added for automatic tests 2021-04-06 11:19:14 +02:00
Bertrand Songis 054411f53a Update to latest libopenui 2021-04-06 09:23:32 +02:00
Bertrand SongisandGitHub 6d53badaea Merge pull request #10 from raphaelcoeffic/mainwindow-singleton
MainWindow is a singleton
2021-04-06 09:17:04 +02:00
Raphael Coeffic d1ab02b5c9 MainWindow is a singleton
This prevents double instantiation by design rather than by convention.
2021-04-06 08:51:47 +02:00
Bertrand Songis 9291675a23 [Checkbox] Fix when disabled 2021-04-06 08:47:54 +02:00
Bertrand Songis 9858ce217e [Checkbox] Fix when disabled 2021-04-06 08:47:09 +02:00
Bertrand SongisandGitHub d8564e3661 Merge pull request #9 from raphaelcoeffic/drawfilledrect
fix offset applied twice in drawFilledRect()
2021-04-05 17:21:10 +02:00
Raphael Coeffic 791eec0235 fix offset applied twice in drawFilledRect()
note: it seems there is no 'x' clipping in drawHorizontalLine(). This should probably be checked.
2021-04-05 14:58:30 +02:00
Bertrand Songis a8c61f740e Warning fix 2021-04-02 16:04:43 +02:00
Bertrand Songis 5c9304fcfd Cosmetics 2021-03-29 15:00:14 +02:00
Bertrand Songis 1513ab1bd5 [NumberEdit] add an option to avoid instant change on modification (change is done later when edit mode is disabled) 2021-03-29 14:57:27 +02:00
Bertrand Songis 40770e6044 Allow to delete a char in TextEdit with PAGE key 2021-03-26 19:15:45 +01:00
Bertrand Songis 6fbe5c4547 Window::setInsideParentScrollingArea added 2021-03-20 12:46:13 +01:00
Bertrand Songis 7d0843c021 TextEdit fix 2021-03-19 10:22:56 +01:00
Bertrand Songis 3abe7f7094 Don't truncate the lines on chinese chars 2021-03-17 11:43:35 +01:00
Bertrand Songis 773e635bbd pushEvent insteado of putEvent 2021-03-12 11:07:30 +01:00
Bertrand Songis d8497a8bbc Cosmetics 2021-03-10 11:03:22 +01:00
Bertrand Songis f0d963386f Avoid a invalidate when not needed 2021-03-10 10:43:36 +01:00