DXGL r76 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r75
|
r76
|
r77
>
Date:
20:23, 14 January 2012
Author:
admin
Status:
new
Tags:
Comment:
Release 0.1.3
Remove 3D support from Release builds
Modified paths:
/common/version.h
(modified) (
history
)
/common/version.nsh
(modified) (
history
)
/ddraw/glDirectDraw.cpp
(modified) (
history
)
/dxgltest/dxgltest.cpp
(modified) (
history
)
Diff
[
purge
]
Index: common/version.h
—
—
@@ -4,11 +4,11 @@
5
5
6
6
#define DXGLMAJOR 0
7
7
#define DXGLMINOR 1
8
-#define DXGLPOINT 2
8
+#define DXGLPOINT 3
9
9
#define DXGLBUILD 0
10
10
11
11
#define DXGLVERNUMBER DXGLMAJOR,DXGLMINOR,DXGLPOINT,DXGLBUILD
12
-#define DXGLVERSTRING "0.1.2.0"
12
+#define DXGLVERSTRING "0.1.3.0"
13
13
14
14
15
15
#endif //__VERSION_H
Index: common/version.nsh
—
—
@@ -1 +1 @@
2
-!define PRODUCT_VERSION "0.1.2"
\ No newline at end of file
2
+!define PRODUCT_VERSION "0.1.3"
\ No newline at end of file
Index: ddraw/glDirectDraw.cpp
—
—
@@ -630,9 +630,14 @@
631
631
}
632
632
if(riid == IID_IDirect3D7)
633
633
{
634
+ #ifdef _DEBUG
634
635
this->AddRef();
635
636
*ppvObj = new glDirect3D7(this);
636
637
return DD_OK;
638
+ #else
639
+ FIXME("Add IDirect3D Interfaces\n");
640
+ ERR(DDERR_GENERIC);
641
+ #endif
637
642
}
638
643
if(riid == IID_IDirectDrawGammaControl)
639
644
{
Index: dxgltest/dxgltest.cpp
—
—
@@ -713,15 +713,21 @@
714
714
tab.pszText = _T("2D Graphics");
715
715
hTab = GetDlgItem(hWnd,IDC_TABS);
716
716
SendDlgItemMessage(hWnd,IDC_TABS,TCM_INSERTITEM,1,(LPARAM)&tab);
717
+ #ifdef _DEBUG
717
718
tab.pszText = _T("3D Graphics");
718
719
SendDlgItemMessage(hWnd,IDC_TABS,TCM_INSERTITEM,2,(LPARAM)&tab);
720
+ #endif
719
721
tabwnd[0] = CreateDialog(hinstance,MAKEINTRESOURCE(IDD_SYSINFO),hTab,SysTabCallback);
720
722
tabwnd[1] = CreateDialog(hinstance,MAKEINTRESOURCE(IDD_TESTGFX),hTab,Test2DCallback);
723
+ #ifdef _DEBUG
721
724
tabwnd[2] = CreateDialog(hinstance,MAKEINTRESOURCE(IDD_TESTGFX),hTab,Test3DCallback);
725
+ #endif
722
726
SendDlgItemMessage(hWnd,IDC_TABS,TCM_GETITEMRECT,0,(LPARAM)&tabrect);
723
727
SetWindowPos(tabwnd[0],NULL,tabrect.left,tabrect.bottom+3,0,0,SWP_SHOWWINDOW|SWP_NOSIZE);
724
728
ShowWindow(tabwnd[1],SW_HIDE);
729
+ #ifdef _DEBUG
725
730
ShowWindow(tabwnd[2],SW_HIDE);
731
+ #endif
726
732
tabopen = 0;
727
733
ShowWindow(hWnd,SW_SHOWNORMAL);
728
734
return TRUE;
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version