wined3d: Fix trace output of emulated_textureram.

This commit is contained in:
Johannes Brandstätter 2014-09-02 13:35:00 +02:00 committed by Alexandre Julliard
parent ac2b2e5e58
commit de3cb3af6f
3 changed files with 6 additions and 5 deletions

View File

@ -1521,7 +1521,8 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
if (wined3d_settings.emulated_textureram)
{
TRACE("Overriding amount of video memory with %u bytes.\n", wined3d_settings.emulated_textureram);
TRACE("Overriding amount of video memory with 0x%s bytes.\n",
wine_dbgstr_longlong(wined3d_settings.emulated_textureram));
driver_info->vram_bytes = wined3d_settings.emulated_textureram;
}

View File

@ -256,10 +256,10 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL)
int TmpVideoMemorySize = atoi(buffer);
if(TmpVideoMemorySize > 0)
{
wined3d_settings.emulated_textureram = TmpVideoMemorySize *1024*1024;
TRACE("Use %iMB = %d byte for emulated_textureram\n",
wined3d_settings.emulated_textureram = (UINT64)TmpVideoMemorySize *1024*1024;
TRACE("Use %iMiB = 0x%s bytes for emulated_textureram\n",
TmpVideoMemorySize,
wined3d_settings.emulated_textureram);
wine_dbgstr_longlong(wined3d_settings.emulated_textureram));
}
else
ERR("VideoMemorySize is %i but must be >0\n", TmpVideoMemorySize);

View File

@ -257,7 +257,7 @@ struct wined3d_settings
unsigned short pci_vendor_id;
unsigned short pci_device_id;
/* Memory tracking and object counting. */
unsigned int emulated_textureram;
UINT64 emulated_textureram;
char *logo;
int allow_multisampling;
BOOL strict_draw_ordering;