bump version and some more protection for dodgy screen coords
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 10 Jul 2014 09:54:08 +0000 (09:54 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 10 Jul 2014 09:54:08 +0000 (09:54 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1752 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2-dev/src/fdmdv2_main.cpp
fdmdv2-dev/src/version.h

index aaaad7b71d7c6afe1111301342b3eec3a3e6df79..72b880f0af2bd1052bfebe72769391eee8d6dfaa 100644 (file)
@@ -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);
index fa80cbe72b3ec162bdc6260b19912a9296e0e142..b942ef4f4de4bb582703ac18ed2756fc04abb138 100644 (file)
@@ -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