diff options
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 77b8d94..2abfbc8 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -55,14 +55,8 @@ MainWindow::MainWindow( QWidget* parent, const char* name ) // statusBar()->setSizeGripEnabled(false); MiavConfig cfg("miav.conf"); - /** / - int resolution_w = 1280; // TODO: Read actual resolution - int resolution_h = 1024; // TODO: Read actual resolution - /**/ - /**/ - int resolution_w = 1024; // TODO: Read actual resolution - int resolution_h = 768; // TODO: Read actual resolution - /**/ + int resolution_w = cfg.readInt("pixel_width"); + int resolution_h = cfg.readInt("pixel_height"); unit = ((float)resolution_w / (float)(cfg.readFloat("screensize") * 3.1f)); move(0,0); @@ -103,8 +97,6 @@ MainWindow::MainWindow( QWidget* parent, const char* name ) aboutwindow = NULL; - // CPRQueryDialog dlg(lbl_cpr, lbl_name, this, "CPRQueryDialog"); - // dlg.exec(); // Open the CPR Dialog cpr_clicked(); } |