mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 17:55:19 +03:00
3djc/horus improve mixer setup (#3636)
* Rework to display bar on mixers, hence needs a more flexible drawSingleXXBar approach * First working version WARNING : displayMixConvertMask() DOES have a bug, do NOT PR without fix * Fixed displayMixConvertMask() bug Cosmetics on placement on status bar * Cosmetics * Improved graphics by mhotar ! * Fix for multiple lines mixers Cosmetics * Fine tune column values to handle more complex mixers lines * Replace +=, *=, := by icons * No needs to use mask bitmap * Remove unwanted png file * Fix handling and conversion of Mask to Bitmap * use loadAndConvertMask here too * Typo * Screen layout fine tune * - Move loadMaskOnBackground to framebuffer.cpp - replace loadMaskAndConvert by loadMaskOnBackground * Cosmetics * Move new icons to theme loading * Fine tune Mixer setup screen on darkblue
This commit is contained in:
parent
2e78dad1a7
commit
e33c56d1eb
20 changed files with 177 additions and 53 deletions
|
@ -507,6 +507,19 @@ BitmapBuffer * BitmapBuffer::loadMask(const char * filename)
|
|||
return bitmap;
|
||||
}
|
||||
|
||||
BitmapBuffer * BitmapBuffer::loadMaskOnBackground(const char * filename, LcdFlags foreground, LcdFlags background)
|
||||
{
|
||||
BitmapBuffer * result = NULL;
|
||||
BitmapBuffer * mask = BitmapBuffer::loadMask(getThemePath(filename));
|
||||
if (mask) {
|
||||
result = new BitmapBuffer(BMP_RGB565, mask->getWidth(), mask->getHeight());
|
||||
result->clear(background);
|
||||
result->drawMask(0, 0, mask, foreground);
|
||||
delete mask;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
FIL imgFile __DMA;
|
||||
|
||||
BitmapBuffer * BitmapBuffer::load_bmp(const char * filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue