mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-06 13:48:01 +03:00
Formatting fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user