Compare commits

..

No commits in common. "d8bb0b53f85ab4ce0336f351964fee0183504280" and "088f77a226c8811f501af2c38ac521d0283f845e" have entirely different histories.

2 changed files with 5 additions and 11 deletions

View File

@ -469,9 +469,6 @@ acpi_release_global_lock:
BAN::ErrorOr<void> ACPI::prepare_sleep(uint8_t sleep_state)
{
if (!m_namespace)
return BAN::Error::from_errno(EFAULT);
auto [pts_path, pts_object] = TRY(m_namespace->find_named_object({}, MUST(AML::NameString::from_string("\\_PTS"))));
if (pts_object == nullptr)
return {};
@ -587,10 +584,7 @@ acpi_release_global_lock:
return BAN::Error::from_errno(EFAULT);
}
if (!m_namespace)
dwarnln("ACPI namespace not initialized, will not evaluate \\_S5");
else
TRY(prepare_sleep(5));
TRY(prepare_sleep(5));
dprintln("Resetting system");

View File

@ -773,11 +773,11 @@ namespace LibImage
return BAN::Error::from_errno(EINVAL);
}
TRY(palette.resize(chunk.data.size() / 3));
for (size_t i = 0; i < palette.size(); i++)
for (size_t i = 0; i < palette.size(); i += 3)
{
palette[i].r = chunk.data[3 * i + 0];
palette[i].g = chunk.data[3 * i + 1];
palette[i].b = chunk.data[3 * i + 2];
palette[i].r = chunk.data[i + 0];
palette[i].g = chunk.data[i + 1];
palette[i].b = chunk.data[i + 2];
palette[i].a = 0xFF;
}
}