[X9D] Renamed to Taranis
[9x] New logo!
This commit is contained in:
+7
-7
@@ -236,7 +236,7 @@ long Open9xSim::onTimeout(FXObject*,FXSelector,void*)
|
||||
|
||||
if(hasFocus()) {
|
||||
static int keys1[]={
|
||||
#if defined(PCBX9D)
|
||||
#if defined(PCBTARANIS)
|
||||
KEY_Page_Up, KEY_MENU,
|
||||
KEY_Page_Down, KEY_PAGE,
|
||||
KEY_Return, KEY_ENTER,
|
||||
@@ -313,7 +313,7 @@ long Open9xSim::onTimeout(FXObject*,FXSelector,void*)
|
||||
} \
|
||||
simuSetSwitch(swtch, state_##swtch-states);
|
||||
|
||||
#if defined(PCBX9D)
|
||||
#if defined(PCBTARANIS)
|
||||
SWITCH_KEY(A, 0, 3);
|
||||
SWITCH_KEY(B, 1, 3);
|
||||
SWITCH_KEY(C, 2, 3);
|
||||
@@ -339,7 +339,7 @@ long Open9xSim::onTimeout(FXObject*,FXSelector,void*)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(PCBX9D)
|
||||
#if defined(PCBTARANIS)
|
||||
#define BL_COLOR FXRGB(47,123,227)
|
||||
#else
|
||||
#define BL_COLOR FXRGB(150,200,152)
|
||||
@@ -350,12 +350,12 @@ void Open9xSim::refreshDiplay()
|
||||
if (lcd_refresh) {
|
||||
lcd_refresh = false;
|
||||
FXColor offColor = IS_BACKLIGHT_ON() ? BL_COLOR : FXRGB(200,200,200);
|
||||
#if !defined(PCBX9D)
|
||||
#if !defined(PCBTARANIS)
|
||||
FXColor onColor = FXRGB(0,0,0);
|
||||
#endif
|
||||
for (int x=0;x<LCD_W;x++) {
|
||||
for (int y=0; y<LCD_H; y++) {
|
||||
#if defined(PCBX9D)
|
||||
#if defined(PCBTARANIS)
|
||||
#define PALETTE_IDX(p, x, mask) ((((p)[(x)] & (mask)) ? 0x1 : 0) + (((p)[DISPLAY_PLAN_SIZE+(x)] & (mask)) ? 0x2 : 0) + (((p)[2*DISPLAY_PLAN_SIZE+(x)] & (mask)) ? 0x4 : 0) + (((p)[3*DISPLAY_PLAN_SIZE+(x)] & (mask)) ? 0x8 : 0))
|
||||
uint8_t mask = (1 << (y%8));
|
||||
uint32_t z = PALETTE_IDX(lcd_buf, (y/8)*LCD_W+x, mask);
|
||||
@@ -441,7 +441,7 @@ int main(int argc,char **argv)
|
||||
StartEepromThread(argc >= 2 ? argv[1] : "eeprom.bin");
|
||||
StartMainThread();
|
||||
|
||||
#if defined(PCBX9D)
|
||||
#if defined(PCBTARANIS)
|
||||
simuSetSwitch(0, 0);
|
||||
simuSetSwitch(1, 0);
|
||||
#endif
|
||||
@@ -451,7 +451,7 @@ int main(int argc,char **argv)
|
||||
|
||||
uint16_t anaIn(uint8_t chan)
|
||||
{
|
||||
#if defined(PCBX9D)
|
||||
#if defined(PCBTARANIS)
|
||||
if (chan == 8)
|
||||
return 2400;
|
||||
#elif defined(PCBGRUVIN9X)
|
||||
|
||||
Reference in New Issue
Block a user