mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Match LegoMeterPresenter::ParseExtra
This commit is contained in:
parent
1f360929cb
commit
eb21e07a8c
@ -46,7 +46,7 @@ void LegoMeterPresenter::ParseExtra()
|
|||||||
extraCopy[extraLength & USHRT_MAX] = '\0';
|
extraCopy[extraLength & USHRT_MAX] = '\0';
|
||||||
|
|
||||||
char output[256];
|
char output[256];
|
||||||
if (KeyValueStringParse(extraCopy, g_strTYPE, output)) {
|
if (KeyValueStringParse(output, g_strTYPE, extraCopy)) {
|
||||||
if (!strcmpi(output, g_strLEFT_TO_RIGHT)) {
|
if (!strcmpi(output, g_strLEFT_TO_RIGHT)) {
|
||||||
m_layout = e_leftToRight;
|
m_layout = e_leftToRight;
|
||||||
}
|
}
|
||||||
@ -61,11 +61,11 @@ void LegoMeterPresenter::ParseExtra()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (KeyValueStringParse(extraCopy, g_strFILLER_INDEX, output)) {
|
if (KeyValueStringParse(output, g_strFILLER_INDEX, extraCopy)) {
|
||||||
m_fillColor = atoi(output);
|
m_fillColor = atoi(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (KeyValueStringParse(extraCopy, g_strVARIABLE, output)) {
|
if (KeyValueStringParse(output, g_strVARIABLE, extraCopy)) {
|
||||||
m_variable = output;
|
m_variable = output;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -83,6 +83,7 @@ void LegoMeterPresenter::ParseExtra()
|
|||||||
void LegoMeterPresenter::StreamingTickle()
|
void LegoMeterPresenter::StreamingTickle()
|
||||||
{
|
{
|
||||||
MxStillPresenter::StreamingTickle();
|
MxStillPresenter::StreamingTickle();
|
||||||
|
|
||||||
m_meterPixels = new MxU8[m_frameBitmap->GetDataSize()];
|
m_meterPixels = new MxU8[m_frameBitmap->GetDataSize()];
|
||||||
if (m_meterPixels == NULL) {
|
if (m_meterPixels == NULL) {
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user