DXGL r258 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r257
|
r258
|
r259
>
Date:
00:20, 6 September 2012
Author:
admin
Status:
new
Tags:
Comment:
Fix AddAttachedSurface.
Release 0.4.0
Modified paths:
/ReadMe.txt
(modified) (
history
)
/common/releasever.h
(modified) (
history
)
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ReadMe.txt
—
—
@@ -1,4 +1,4 @@
2
-DXGL 0.3.2
2
+DXGL 0.4.0
3
3
http://www.williamfeely.info/wiki/DXGL
4
4
5
5
== Introduction ==
Index: common/releasever.h
—
—
@@ -3,8 +3,8 @@
4
4
#define __VERSION_H
5
5
6
6
#define DXGLMAJORVER 0
7
-#define DXGLMINORVER 3
8
-#define DXGLPOINTVER 2
7
+#define DXGLMINORVER 4
8
+#define DXGLPOINTVER 0
9
9
10
10
#define STR2(x) #x
11
11
#define STR(x) STR2(x)
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -1213,6 +1213,7 @@
1214
1214
HRESULT WINAPI glDirectDrawSurface1::AddAttachedSurface(LPDIRECTDRAWSURFACE lpDDSAttachedSurface)
1215
1215
{
1216
1216
if(!this) return DDERR_INVALIDOBJECT;
1217
+ if(!lpDDSAttachedSurface) return DDERR_INVALIDPARAMS;
1217
1218
return glDDS7->AddAttachedSurface(((glDirectDrawSurface1*)lpDDSAttachedSurface)->GetDDS7());
1218
1219
}
1219
1220
HRESULT WINAPI glDirectDrawSurface1::AddOverlayDirtyRect(LPRECT lpRect)
—
—
@@ -1439,6 +1440,7 @@
1440
1441
HRESULT WINAPI glDirectDrawSurface2::AddAttachedSurface(LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface)
1441
1442
{
1442
1443
if(!this) return DDERR_INVALIDOBJECT;
1444
+ if(!lpDDSAttachedSurface) return DDERR_INVALIDPARAMS;
1443
1445
return glDDS7->AddAttachedSurface(((glDirectDrawSurface2*)lpDDSAttachedSurface)->GetDDS7());
1444
1446
}
1445
1447
HRESULT WINAPI glDirectDrawSurface2::AddOverlayDirtyRect(LPRECT lpRect)
—
—
@@ -1684,6 +1686,7 @@
1685
1687
HRESULT WINAPI glDirectDrawSurface3::AddAttachedSurface(LPDIRECTDRAWSURFACE3 lpDDSAttachedSurface)
1686
1688
{
1687
1689
if(!this) return DDERR_INVALIDOBJECT;
1690
+ if(!lpDDSAttachedSurface) return DDERR_INVALIDPARAMS;
1688
1691
return glDDS7->AddAttachedSurface(((glDirectDrawSurface3*)lpDDSAttachedSurface)->GetDDS7());
1689
1692
}
1690
1693
HRESULT WINAPI glDirectDrawSurface3::AddOverlayDirtyRect(LPRECT lpRect)
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