(Xbox 1/RMenu context) build fix

This commit is contained in:
twinaphex 2012-08-22 00:37:42 +02:00
parent 66247dbb61
commit 9c1725358b
2 changed files with 5 additions and 2 deletions

View File

@ -154,7 +154,7 @@ static void rmenu_ctx_xdk_screenshot_enable(bool enable)
static void rmenu_ctx_xdk_screenshot_dump(void *data)
{
gfx_ctx_xdk_screenshot_dump();
gfx_ctx_xdk_screenshot_dump(NULL);
}
const rmenu_context_t rmenu_ctx_xdk = {

View File

@ -22,6 +22,8 @@
#include "config.h"
#endif
#include <xgraphics.h>
#include "../../screenshot.h"
#include "xdk_ctx.h"
@ -161,7 +163,8 @@ void gfx_ctx_xdk_screenshot_dump(void *data)
ret = XGWriteSurfaceToFile(surf, filename);
surf->Release();
#elif defined(_XBOX360)
ret = D3DXSaveTextureToFile(filename, D3DXIFF_BMP, d3d->lpTexture, NULL);
ret = 1; //false
//ret = D3DXSaveTextureToFile(filename, D3DXIFF_BMP, d3d->lpTexture, NULL);
#endif
if(ret == S_OK)