summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Mfd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Mfd.cpp')
-rw-r--r--Stars45/Mfd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Stars45/Mfd.cpp b/Stars45/Mfd.cpp
index 44d5719..55f7cae 100644
--- a/Stars45/Mfd.cpp
+++ b/Stars45/Mfd.cpp
@@ -110,7 +110,7 @@ cockpit_hud_texture(0)
}
MFD::~MFD()
-{
+{
GRAPHIC_DESTROY(sprite);
}
@@ -223,8 +223,8 @@ MFD::SetRect(const Rect& r)
rect = r;
if (sprite)
- sprite->MoveTo(Point(rect.x + sprite->Width()/2,
- rect.y + sprite->Height()/2,
+ sprite->MoveTo(Point(rect.x + sprite->Width()/2,
+ rect.y + sprite->Height()/2,
1));
}
@@ -1112,14 +1112,14 @@ MFD::DrawGameMFD()
if (!HUDView::IsArcade() && HUDView::ShowFPS()) {
sprintf_s(txt, "FPS: %6.2f", Game::FrameRate());
- DrawMFDText(t++, txt, txt_rect, DT_LEFT);
+ DrawMFDText(t++, txt, txt_rect, DT_LEFT);
txt_rect.y += 10;
if (lines <= 1) return;
Starshatter* game = Starshatter::GetInstance();
sprintf_s(txt, "Polys: %d", game->GetPolyStats().npolys);
- DrawMFDText(t++, txt, txt_rect, DT_LEFT);
+ DrawMFDText(t++, txt, txt_rect, DT_LEFT);
txt_rect.y += 10;
}
@@ -1136,7 +1136,7 @@ MFD::DrawGameMFD()
if (ship) {
DWORD clock = ship->MissionClock();
-
+
hours = (clock / 3600000) ;
minutes = (clock / 60000) % 60;
seconds = (clock / 1000) % 60;