fixed broken interactive_TTL variable removed in last commit

Former-commit-id: 0d6078fd49398701008371339a5770cbd6112d61
Former-commit-id: 5a0cb56adc5349a227637093e8764ddf3adc6c5a
This commit is contained in:
nathan 2020-03-02 23:07:39 -08:00
parent 93e26cc2e4
commit 3398748007
4 changed files with 9 additions and 7 deletions

9
draw.c
View file

@ -324,10 +324,10 @@ void drawTrail(float *oldDx, float *oldDy, float *oldHeading, time_t * oldSeen,
//most recent reported location
if(i == 0) {
boxRGBA(appData.renderer,currentX - 2 * appData.screen_uiscale, currentY - 2 * appData.screen_uiscale, currentX + 2 * appData.screen_uiscale, currentY - 2 * appData.screen_uiscale,
orange.r, orange.g, orange.b, 255);
}
// if(i == 0) {
// boxRGBA(appData.renderer,currentX - 2 * appData.screen_uiscale, currentY - 2 * appData.screen_uiscale, currentX + 2 * appData.screen_uiscale, currentY + 2 * appData.screen_uiscale,
// orange.r, orange.g, orange.b, 255);
// }
//tick marks
@ -1026,7 +1026,6 @@ void draw() {
SDL_RenderPresent(appData.renderer);
appData.lastFrameTime = mstime();
if ((mstime() - drawStartTime) < FRAMETIME) {

2
init.c
View file

@ -46,7 +46,7 @@ void init(char *title) {
selectedPlane = NULL;
if(appData.fullscreen) {
//\SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); // make the scaled rendering look smoother.
//SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); // make the scaled rendering look smoother.
SDL_RenderSetLogicalSize(appData.renderer, appData.screen_width, appData.screen_height);
}

View file

@ -1 +1 @@
cd3abc894d6c0a4ec31ca1210552bf4da06145a5
07df3964a61c9028e5b598c82409b849e2edc971

View file

@ -54,6 +54,9 @@ void view1090InitConfig(void) {
Modes.check_crc = 1;
strcpy(View1090.net_input_beast_ipaddr,VIEW1090_NET_OUTPUT_IP_ADDRESS);
Modes.net_input_beast_port = MODES_NET_OUTPUT_BEAST_PORT;
Modes.interactive_rows = MODES_INTERACTIVE_ROWS;
Modes.interactive_delete_ttl = MODES_INTERACTIVE_DELETE_TTL;
Modes.interactive_display_ttl = MODES_INTERACTIVE_DISPLAY_TTL;
Modes.fUserLat = MODES_USER_LATITUDE_DFLT;
Modes.fUserLon = MODES_USER_LONGITUDE_DFLT;