[nostalgia/gfx] More cleanup
All checks were successful
Build / build (push) Successful in 1m16s

This commit is contained in:
Gary Talent 2025-05-14 01:43:37 -05:00
parent efec6eb3c8
commit 8a52df4f76
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ ox::Error initGfx(Context &ctx, InitParams const&) noexcept;
ox::Result<ox::UPtr<Context>> init(turbine::Context &tctx, InitParams const&params) noexcept {
auto ctx = ox::make_unique<Context>(tctx);
OX_RETURN_ERROR(initGfx(*ctx, params));
return ox::UPtr<Context>(std::move(ctx));
return ctx;
}
keel::Context &keelCtx(Context &ctx) noexcept {

View File

@ -26,7 +26,7 @@ Context::~Context() noexcept {
ox::Result<ox::UPtr<Context>> init(turbine::Context &tctx, InitParams const&params) noexcept {
auto ctx = ox::make_unique<Context>(tctx, params);
OX_RETURN_ERROR(initGfx(*ctx, params));
return ox::UPtr<Context>(ctx.release());
return ctx;
}
keel::Context &keelCtx(Context &ctx) noexcept {

View File

@ -571,7 +571,7 @@ static ox::Result<TileSheetData> buildSetTsd(
static void copyPixels(
CompactTileSheet const&ts,
ox::Span<uint32_t> dst,
ox::Span<uint32_t> const dst,
size_t const srcPxIdx,
size_t const pxlCnt) noexcept {
size_t idx{};