Formatting fixes

This commit is contained in:
korenkonder
2025-03-23 17:12:12 +03:00
parent cbfe9d3fac
commit 7db47d0223
4 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ const mot_data* motion_storage_get_mot_data(uint32_t motion_id, const motion_dat
const motion_set_info* set_info = mot_db->get_motion_set_by_motion_id(motion_id);
if (!set_info)
return 0;
for (const motion_info& i : set_info->motion) {
if (i.id != motion_id)
continue;
+1 -2
View File
@@ -390,8 +390,7 @@ void ColorChangeDw::Draw() {
spr::SprArgs args;
args.texture = chg_tex;
args.trans.x = (float_t)chg_tex->width;
if (auto_resize)
{
if (auto_resize) {
args.SetSpriteSize(256.0f);
args.trans.x = 266.0;
}
+1 -2
View File
@@ -750,8 +750,7 @@ namespace MoviePlayLib {
if (SUCCEEDED(hr)) {
hr = d3d_device_temp->CreateDeviceEx(0, D3DDEVTYPE_HAL, present_param.hDeviceWindow,
d3d_device_flags, &present_param, 0, &d3d_device);
if (SUCCEEDED(hr))
{
if (SUCCEEDED(hr)) {
hr = DXVA2CreateDirect3DDeviceManager9(&reset_token, &d3d_device_manager);
if (SUCCEEDED(hr))
hr = d3d_device_manager->ResetDevice(d3d_device, reset_token);
+1 -2
View File
@@ -236,8 +236,7 @@ namespace MoviePlayLib {
BOOL TransformBase::Playback() {
BOOL shutdown = FALSE;
HRESULT hr = S_OK;
do
{
do {
lock.Acquire();
if (this->shutdown) {
hr = MF_E_SHUTDOWN;