From abbd8f35166ebfe427c77242bffe6f0fd18ef93a Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 12 Apr 2012 17:04:38 -0400 Subject: [PATCH] Update default Charts window width * Set the window width default to 845px which is just enough to fit the controls along the top in the default font size and locale. * Fix an obvious type in a comment in ChartWindow.cpp --- src/tests/kits/game/chart/Chart.cpp | 2 +- src/tests/kits/game/chart/ChartWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/kits/game/chart/Chart.cpp b/src/tests/kits/game/chart/Chart.cpp index 596062295d..e61f99eb4b 100644 --- a/src/tests/kits/game/chart/Chart.cpp +++ b/src/tests/kits/game/chart/Chart.cpp @@ -33,7 +33,7 @@ main() ChartApp::ChartApp() : BApplication("application/x-vnd.Be.ChartDemo") { - fWindow = new ChartWindow(BRect(120, 150, 629, 591), + fWindow = new ChartWindow(BRect(120, 150, 965, 591), B_TRANSLATE_SYSTEM_NAME("Chart")); // showing the window will also start the direct connection. If you diff --git a/src/tests/kits/game/chart/ChartWindow.cpp b/src/tests/kits/game/chart/ChartWindow.cpp index e568bf3e68..38dbf062d2 100644 --- a/src/tests/kits/game/chart/ChartWindow.cpp +++ b/src/tests/kits/game/chart/ChartWindow.cpp @@ -51,7 +51,7 @@ enum { #define MAX_FONT_SIZE 12.0f -/* various offse, width, height and position used to align and +/* various offset, width, height and position used to align and set the various UI elements. */ enum { TOP_LEFT_LIMIT = 26,