mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Fix problem with formatting
This commit is contained in:
parent
d041cbbb7a
commit
0e87023e46
1 changed files with 6 additions and 8 deletions
|
|
@ -1266,17 +1266,15 @@ DefineEngineFunction( sfxGetAvailableDevices, const char*, (),,
|
||||||
for ( S32 d=0; d < deviceInfo.size(); d++ )
|
for ( S32 d=0; d < deviceInfo.size(); d++ )
|
||||||
{
|
{
|
||||||
const SFXDeviceInfo* info = deviceInfo[d];
|
const SFXDeviceInfo* info = deviceInfo[d];
|
||||||
const char *providerName = provider->getName().c_str();
|
const char *providerName = provider->getName().c_str();
|
||||||
const char *infoName = info->name.c_str();
|
const char *infoName = info->name.c_str();
|
||||||
dSprintf(ptr, len, "%s\t%s\t%s\t%i\n", providerName, infoName, info->hasHardware ? "1" : "0", info->maxBuffers);
|
dSprintf(ptr, len, "%s\t%s\t%s\t%i\n", providerName, infoName, info->hasHardware ? "1" : "0", info->maxBuffers);
|
||||||
|
|
||||||
ptr += dStrlen(deviceList);
|
ptr += dStrlen(deviceList);
|
||||||
len = 2048 - (ptr - deviceList);
|
len = 2048 - (ptr - deviceList);
|
||||||
|
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
return deviceList;
|
return deviceList;
|
||||||
|
|
||||||
//TODO: caps
|
|
||||||
}
|
}
|
||||||
|
|
||||||
provider = provider->getNextProvider();
|
provider = provider->getNextProvider();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue