aboutsummaryrefslogtreecommitdiff
path: root/hgewin/graphics.cpp
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-20 00:13:06 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-20 00:13:06 +0000
commit57445c9930d6bf8f534d3fb6d9571dab5cfa1fcc (patch)
tree9e4714ce1fb8c241e3f8f1267700c9b34e90252e /hgewin/graphics.cpp
parentd8c84876b20f8fd784171e9bb525af38a25380f1 (diff)
downloadbullet-lab-remix-57445c9930d6bf8f534d3fb6d9571dab5cfa1fcc.tar.xz
Sync hgewin code with the unix version.
Diffstat (limited to 'hgewin/graphics.cpp')
-rwxr-xr-xhgewin/graphics.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/hgewin/graphics.cpp b/hgewin/graphics.cpp
index c7dc369..43a5cc1 100755
--- a/hgewin/graphics.cpp
+++ b/hgewin/graphics.cpp
@@ -10,8 +10,8 @@
#include "hge_impl.h"
#include <d3d9.h>
-#include <d3dx9.h>
-
+#include <d3dx9.h>
+static const char* GRAPHICS_SRC_FN="hge/graphics.cpp";
void CALL HGE_Impl::Gfx_Clear(DWORD color)
{
@@ -628,9 +628,10 @@ bool HGE_Impl::_GfxInit()
// Get adapter info
pD3D->GetAdapterIdentifier(D3DADAPTER_DEFAULT, 0, &AdID);
- System_Log("D3D Driver: %s",AdID.Driver);
- System_Log("Description: %s",AdID.Description);
- System_Log("Version: %d.%d.%d.%d",
+ System_Log("%s: D3D Driver: %s",GRAPHICS_SRC_FN,AdID.Driver);
+ System_Log("%s: Description: %s",GRAPHICS_SRC_FN,AdID.Description);
+ System_Log("%s: Version: %d.%d.%d.%d",
+ GRAPHICS_SRC_FN,
HIWORD(AdID.DriverVersion.HighPart),
LOWORD(AdID.DriverVersion.HighPart),
HIWORD(AdID.DriverVersion.LowPart),
@@ -720,7 +721,7 @@ bool HGE_Impl::_GfxInit()
_AdjustWindow();
- System_Log("Mode: %d x %d x %s\n",nScreenWidth,nScreenHeight,szFormats[_format_id(Format)]);
+ System_Log("%s: Mode: %d x %d x %s\n",GRAPHICS_SRC_FN,nScreenWidth,nScreenHeight,szFormats[_format_id(Format)]);
// Create vertex batch buffer