* Remove 'static' from bitmapbuffer that where causing issues when changing theme. I have checked that this does not create extra sdcard access * Cosmetics * Move calibration bitmaps to theme * Overlaping PR * There no theme changing during shutdown * Cosmetics
209 lines
4.5 KiB
C++
209 lines
4.5 KiB
C++
/*
|
|
* Copyright (C) OpenTX
|
|
*
|
|
* Based on code named
|
|
* th9x - http://code.google.com/p/th9x
|
|
* er9x - http://code.google.com/p/er9x
|
|
* gruvin9x - http://code.google.com/p/gruvin9x
|
|
*
|
|
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include "opentx.h"
|
|
|
|
/*
|
|
* Header bitmaps
|
|
*/
|
|
|
|
const uint8_t LBM_DOT[] = {
|
|
#include "mask_dot.lbm"
|
|
};
|
|
|
|
/*
|
|
* Main view bitmaps
|
|
*/
|
|
|
|
const uint8_t LBM_TOPMENU_USB[] = {
|
|
#include "mask_topmenu_usb.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_VOLUME_0[] = {
|
|
#include "mask_volume_0.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_VOLUME_1[] = {
|
|
#include "mask_volume_1.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_VOLUME_2[] = {
|
|
#include "mask_volume_2.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_VOLUME_3[] = {
|
|
#include "mask_volume_3.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_VOLUME_4[] = {
|
|
#include "mask_volume_4.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_VOLUME_SCALE[] = {
|
|
#include "mask_volume_scale.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TOPMENU_TXBATT[] = {
|
|
#include "mask_txbat.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_HTRIM_FRAME[] = {
|
|
#include "mask_htrim_frame.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_VTRIM_FRAME[] = {
|
|
#include "mask_vtrim_frame.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TRIM_SHADOW[] = {
|
|
#include "mask_trim_shadow.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TIMER_BACKGROUND[] = {
|
|
#include "mask_timer_bg.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_TIMER[] = {
|
|
#include "mask_timer.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_RSCALE[] = {
|
|
#include "mask_rscale.lbm"
|
|
};
|
|
|
|
/*
|
|
* Model selection screen bitmaps
|
|
*/
|
|
|
|
const uint8_t LBM_LIBRARY_SLOT[] = {
|
|
#include "mask_library_slot.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_ACTIVE_MODEL[] = {
|
|
#include "mask_library_active_model.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SCORE0[] = {
|
|
#include "mask_library_score_0.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SCORE1[] = {
|
|
#include "mask_library_score_1.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_STAR0[] = {
|
|
#include "mask_library_star_0.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_STAR1[] = {
|
|
#include "mask_library_star_1.lbm"
|
|
};
|
|
|
|
/*
|
|
* Other
|
|
*/
|
|
|
|
const uint8_t LBM_POINT[] = {
|
|
#include "mask_point.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_CURVE_POINT[] = {
|
|
#include "mask_cvpoint.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_CURVE_POINT_CENTER[] = {
|
|
#include "mask_cvpoint_center.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_CURVE_COORD_SHADOW[] = {
|
|
#include "mask_coord_shadow.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SHUTDOWN_CIRCLE[] = {
|
|
#include "mask_shutdown_circle.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SLIDER_BAR_LEFT[] __ALIGNED = {
|
|
#include "bar_left.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SLIDER_BAR_RIGHT[] __ALIGNED = {
|
|
#include "bar_right.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SLIDER_POINT_OUT[] __ALIGNED = {
|
|
#include "point_out.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SLIDER_POINT_MID[] __ALIGNED = {
|
|
#include "point_mid.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SLIDER_POINT_IN[] __ALIGNED = {
|
|
#include "point_in.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_CARROUSSEL_LEFT[] = {
|
|
#include "mask_carroussel_left.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_CARROUSSEL_RIGHT[] = {
|
|
#include "mask_carroussel_right.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SWIPE_CIRCLE[] = {
|
|
#include "mask_swipe_circle.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SWIPE_LEFT[] = {
|
|
#include "mask_swipe_left.lbm"
|
|
};
|
|
|
|
const uint8_t LBM_SWIPE_RIGHT[] = {
|
|
#include "mask_swipe_right.lbm"
|
|
};
|
|
|
|
BitmapBuffer * calibStick = NULL;
|
|
BitmapBuffer * calibBackground = NULL;
|
|
BitmapBuffer * calibStickBackground = NULL;
|
|
BitmapBuffer * calibTrackpBackground = NULL;
|
|
BitmapBuffer * calibHorus = NULL;
|
|
BitmapBuffer * modelselIconBitmap = NULL;
|
|
BitmapBuffer * modelselSdFreeBitmap = NULL;
|
|
BitmapBuffer * modelselModelQtyBitmap = NULL;
|
|
BitmapBuffer * modelselModelNameBitmap = NULL;
|
|
BitmapBuffer * modelselModelMoveBackground = NULL;
|
|
BitmapBuffer * modelselModelMoveIcon = NULL;
|
|
BitmapBuffer * chanMonLockedBitmap = NULL;
|
|
BitmapBuffer * chanMonInvertedBitmap = NULL;
|
|
BitmapBuffer * mixerSetupMixerBitmap = NULL;
|
|
BitmapBuffer * mixerSetupToBitmap = NULL;
|
|
BitmapBuffer * mixerSetupOutputBitmap = NULL;
|
|
BitmapBuffer * mixerSetupAddBitmap = NULL;
|
|
BitmapBuffer * mixerSetupMultiBitmap = NULL;
|
|
BitmapBuffer * mixerSetupReplaceBitmap = NULL;
|
|
BitmapBuffer * mixerSetupLabelBitmap = NULL;
|
|
BitmapBuffer * mixerSetupCurveBitmap = NULL;
|
|
BitmapBuffer * mixerSetupSwitchBitmap = NULL;
|
|
BitmapBuffer * mixerSetupDelayBitmap = NULL;
|
|
BitmapBuffer * mixerSetupSlowBitmap = NULL;
|
|
BitmapBuffer * mixerSetupDelaySlowBitmap = NULL;
|
|
BitmapBuffer * mixerSetupFlightmodeBitmap = NULL;
|