applied fixes for windows compatibility, needs cleanup

This commit is contained in:
2010-11-28 23:08:52 +01:00
parent 0e77645776
commit 1a0da37a4c
8 changed files with 28 additions and 6 deletions
+2 -2
View File
@@ -389,8 +389,8 @@ void View::DrawUi () {
ViewState current_view_state = GetViewState();
SelectFont ("console.ttf size=12");
Engine::GUI::Label (99999, GetStringViewState(current_view_state), 8, 16);
// SelectFont ("console.ttf size=12");
// Engine::GUI::Label (99999, GetStringViewState(current_view_state), 8, 16);
switch (current_view_state) {
case ViewStateMainMenu:
+10 -1
View File
@@ -9,10 +9,19 @@
#include "Physics.h"
#include "EntityFactory.h"
#ifdef WIN32
#include <Windows.h>
#endif
using namespace std;
int main (int argc, char* argv[]) {
cout << "Game Start" << endl;
#ifdef WIN32
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_HIDE );
#endif
Engine::Engine engine;
@@ -39,7 +48,7 @@ int main (int argc, char* argv[]) {
else
SDL_WM_SetIcon(image,NULL);
SDL_WM_SetCaption("Asteroids -Leaked TechDemo-","Asteroids -Leaked TechDemo-");
SDL_WM_SetCaption("Asteroids -BETA1-","Asteroids -BETA 1-");
engine.GetView()->SetGridSize (8,8);
dynamic_cast<asteroids::Physics*>(engine.GetPhysics())->SetWorldSize (28, 20);