mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GameSettings: Fix build warning
This commit is contained in:
parent
def9a98cb9
commit
62609b5008
|
@ -207,13 +207,13 @@ static void ParseIniSection(Entry* entry, const char* section, const CSimpleIniA
|
||||||
entry->display_active_start_offset = static_cast<s16>(lvalue);
|
entry->display_active_start_offset = static_cast<s16>(lvalue);
|
||||||
lvalue = ini.GetLongValue(section, "DisplayActiveEndOffset", 0);
|
lvalue = ini.GetLongValue(section, "DisplayActiveEndOffset", 0);
|
||||||
if (lvalue != 0)
|
if (lvalue != 0)
|
||||||
entry->display_active_end_offset = static_cast<s8>(lvalue);
|
entry->display_active_end_offset = static_cast<s16>(lvalue);
|
||||||
lvalue = ini.GetLongValue(section, "DisplayLineStartOffset", 0);
|
lvalue = ini.GetLongValue(section, "DisplayLineStartOffset", 0);
|
||||||
if (lvalue != 0)
|
if (lvalue != 0)
|
||||||
entry->display_line_start_offset = static_cast<s8>(lvalue);
|
entry->display_line_start_offset = static_cast<s8>(lvalue);
|
||||||
lvalue = ini.GetLongValue(section, "DisplayLineEndOffset", 0);
|
lvalue = ini.GetLongValue(section, "DisplayLineEndOffset", 0);
|
||||||
if (lvalue != 0)
|
if (lvalue != 0)
|
||||||
entry->display_line_end_offset = static_cast<s16>(lvalue);
|
entry->display_line_end_offset = static_cast<s8>(lvalue);
|
||||||
lvalue = ini.GetLongValue(section, "DMAMaxSliceTicks", 0);
|
lvalue = ini.GetLongValue(section, "DMAMaxSliceTicks", 0);
|
||||||
if (lvalue > 0)
|
if (lvalue > 0)
|
||||||
entry->dma_max_slice_ticks = static_cast<u32>(lvalue);
|
entry->dma_max_slice_ticks = static_cast<u32>(lvalue);
|
||||||
|
|
Loading…
Reference in a new issue