From e2ea6cb26ceaf5457b35c450f9792526be099dc8 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 10 Jul 2014 09:54:08 +0000 Subject: [PATCH] bump version and some more protection for dodgy screen coords git-svn-id: https://svn.code.sf.net/p/freetel/code@1752 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2-dev/src/fdmdv2_main.cpp | 8 ++++---- fdmdv2-dev/src/version.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fdmdv2-dev/src/fdmdv2_main.cpp b/fdmdv2-dev/src/fdmdv2_main.cpp index aaaad7b7..72b880f0 100644 --- a/fdmdv2-dev/src/fdmdv2_main.cpp +++ b/fdmdv2-dev/src/fdmdv2_main.cpp @@ -211,10 +211,10 @@ MainFrame::MainFrame(wxWindow *parent) : TopFrame(parent) // sanitise frame position as a first pass at Win32 registry bug printf("x = %d y = %d w = %d h = %d\n", x,y,w,h); - if (x < 0) x = 20; - if (y < 0) y = 20; - if (w < 0) w = 800; - if (h < 0) h = 550; + if (x < 0 || x > 2048) x = 20; + if (y < 0 || y > 2048) y = 20; + if (w < 0 || w > 2048) w = 800; + if (h < 0 || h > 2048) h = 550; // note: run DebugView program to see this message under windows //wxLogDebug("x = %d y = %d w = %d h = %d\n", x,y,w,h); diff --git a/fdmdv2-dev/src/version.h b/fdmdv2-dev/src/version.h index fa80cbe7..b942ef4f 100644 --- a/fdmdv2-dev/src/version.h +++ b/fdmdv2-dev/src/version.h @@ -3,9 +3,9 @@ #define FREEDV_VERSION_MAJOR 0 #define FREEDV_VERSION_MINOR 97 -#define FREEDV_VERSION_PATCH 0 +#define FREEDV_VERSION_PATCH 1 #define FREEDV_VERSION_SUFFIX "Beta" -#define FREEDV_VERSION "0.97.0 Beta" +#define FREEDV_VERSION "0.97.1 Beta" #endif //FREEDV_VER_DOT_H -- 2.25.1