DXGL r84 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r83
|
r84
|
r85
>
Date:
00:58, 24 January 2012
Author:
admin
Status:
new
Tags:
Comment:
Implement GetAvailableVidMem
Modified paths:
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1784,8 +1784,11 @@
1785
1785
}
1786
1786
HRESULT WINAPI glDirectDraw2::GetAvailableVidMem(LPDDSCAPS lpDDSCaps, LPDWORD lpdwTotal, LPDWORD lpdwFree)
1787
1787
{
1788
- FIXME("glDirectDraw2::GetAvailableVidMem: stub\n");
1789
- ERR(DDERR_GENERIC);
1788
+ MEMORYSTATUS memstatus;
1789
+ memstatus.dwLength = sizeof(MEMORYSTATUS);
1790
+ *lpdwTotal = memstatus.dwTotalVirtual;
1791
+ *lpdwFree = memstatus.dwAvailVirtual;
1792
+ return DD_OK;
1790
1793
}
1791
1794
// DDRAW4 wrapper
1792
1795
glDirectDraw4::glDirectDraw4(glDirectDraw7 *gl_DD7)
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