DXGL r46 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r45
|
r46
|
r47
>
Date:
17:47, 25 December 2011
Author:
admin
Status:
new
Tags:
Comment:
fix glDirectDrawSurface::Initialize
fix glDirectDraw::Initialize for old versions
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
/ddraw/glDirectDrawSurface.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1556,8 +1556,7 @@
1557
1557
}
1558
1558
HRESULT WINAPI glDirectDraw1::Initialize(GUID FAR *lpGUID)
1559
1559
{
1560
- FIXME("IDirectDraw1::Initialize: stub\n");
1561
- ERR(DDERR_DIRECTDRAWALREADYCREATED);
1560
+ return glDD7->Initialize(lpGUID);
1562
1561
}
1563
1562
HRESULT WINAPI glDirectDraw1::RestoreDisplayMode()
1564
1563
{
—
—
@@ -1676,8 +1675,7 @@
1677
1676
}
1678
1677
HRESULT WINAPI glDirectDraw2::Initialize(GUID FAR *lpGUID)
1679
1678
{
1680
- FIXME("IDirectDraw2::Initialize: stub\n");
1681
- ERR(DDERR_DIRECTDRAWALREADYCREATED);
1679
+ return glDD7->Initialize(lpGUID);
1682
1680
}
1683
1681
HRESULT WINAPI glDirectDraw2::RestoreDisplayMode()
1684
1682
{
—
—
@@ -1799,8 +1797,7 @@
1800
1798
}
1801
1799
HRESULT WINAPI glDirectDraw4::Initialize(GUID FAR *lpGUID)
1802
1800
{
1803
- FIXME("IDirectDraw4::Initialize: stub\n");
1804
- ERR(DDERR_DIRECTDRAWALREADYCREATED);
1801
+ return glDD7->Initialize(lpGUID);
1805
1802
}
1806
1803
HRESULT WINAPI glDirectDraw4::RestoreDisplayMode()
1807
1804
{
Index: ddraw/glDirectDrawSurface.cpp
—
—
@@ -916,7 +916,7 @@
917
917
}
918
918
HRESULT WINAPI glDirectDrawSurface7::Initialize(LPDIRECTDRAW lpDD, LPDDSURFACEDESC2 lpDDSurfaceDesc)
919
919
{
920
- ERR(DDERR_ALREADYINITIALIZED);
920
+ return DDERR_ALREADYINITIALIZED;
921
921
}
922
922
HRESULT WINAPI glDirectDrawSurface7::IsLost()
923
923
{
—
—
@@ -1342,8 +1342,7 @@
1343
1343
}
1344
1344
HRESULT WINAPI glDirectDrawSurface1::Initialize(LPDIRECTDRAW lpDD, LPDDSURFACEDESC lpDDSurfaceDesc)
1345
1345
{
1346
- FIXME("glDirectDrawSurface1::Initialize: stub\n");
1347
- ERR(DDERR_GENERIC);
1346
+ return DDERR_ALREADYINITIALIZED;
1348
1347
}
1349
1348
HRESULT WINAPI glDirectDrawSurface1::IsLost()
1350
1349
{
—
—
@@ -1523,8 +1522,7 @@
1524
1523
}
1525
1524
HRESULT WINAPI glDirectDrawSurface2::Initialize(LPDIRECTDRAW lpDD, LPDDSURFACEDESC lpDDSurfaceDesc)
1526
1525
{
1527
- FIXME("glDirectDrawSurface2::Initialize: stub\n");
1528
- ERR(DDERR_GENERIC);
1526
+ return DDERR_ALREADYINITIALIZED;
1529
1527
}
1530
1528
HRESULT WINAPI glDirectDrawSurface2::IsLost()
1531
1529
{
—
—
@@ -1716,8 +1714,7 @@
1717
1715
}
1718
1716
HRESULT WINAPI glDirectDrawSurface3::Initialize(LPDIRECTDRAW lpDD, LPDDSURFACEDESC lpDDSurfaceDesc)
1719
1717
{
1720
- FIXME("glDirectDrawSurface3::Initialize: stub\n");
1721
- ERR(DDERR_GENERIC);
1718
+ return DDERR_ALREADYINITIALIZED;
1722
1719
}
1723
1720
HRESULT WINAPI glDirectDrawSurface3::IsLost()
1724
1721
{
—
—
@@ -1905,8 +1902,7 @@
1906
1903
}
1907
1904
HRESULT WINAPI glDirectDrawSurface4::Initialize(LPDIRECTDRAW lpDD, LPDDSURFACEDESC2 lpDDSurfaceDesc)
1908
1905
{
1909
- FIXME("glDirectDrawSurface4::Initialize: stub\n");
1910
- ERR(DDERR_GENERIC);
1906
+ return DDERR_ALREADYINITIALIZED;
1911
1907
}
1912
1908
HRESULT WINAPI glDirectDrawSurface4::IsLost()
1913
1909
{
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