From 4c58935dca4045782e9bd566ca6030b28f8e3c03 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sat, 12 Sep 2009 06:20:51 +0000 Subject: [PATCH] MidiPlayer : CenterOnScreen * Remove the local version (not really working) of CenterOnScreen and use the shared one. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33084 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/midiplayer/MidiPlayerWindow.cpp | 12 ------------ src/apps/midiplayer/MidiPlayerWindow.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/apps/midiplayer/MidiPlayerWindow.cpp b/src/apps/midiplayer/MidiPlayerWindow.cpp index 8ec34275f6..ce02cdea34 100644 --- a/src/apps/midiplayer/MidiPlayerWindow.cpp +++ b/src/apps/midiplayer/MidiPlayerWindow.cpp @@ -290,18 +290,6 @@ void MidiPlayerWindow::CreateViews() //------------------------------------------------------------------------------ -void MidiPlayerWindow::CenterOnScreen() -{ - BRect screenRect = BScreen(this).Frame(); - BRect windowRect = Frame(); - - MoveTo( - (screenRect.Width() - windowRect.Width()) / 2, - (screenRect.Height() - windowRect.Height()) / 2); -} - -//------------------------------------------------------------------------------ - void MidiPlayerWindow::InitControls() { Lock(); diff --git a/src/apps/midiplayer/MidiPlayerWindow.h b/src/apps/midiplayer/MidiPlayerWindow.h index 7fb57db353..7e627e2b3e 100644 --- a/src/apps/midiplayer/MidiPlayerWindow.h +++ b/src/apps/midiplayer/MidiPlayerWindow.h @@ -64,7 +64,6 @@ private: void CreateInputMenu(); void CreateReverbMenu(); void CreateViews(); - void CenterOnScreen(); void InitControls(); void LoadSettings(); void SaveSettings();