Compare commits

..

2 Commits

Author SHA1 Message Date
fallenoak
684e293452 fix(gx): correct failure to copy more than the first 2 bytes in Blit_uint16_uint16
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
2026-07-25 22:51:03 -05:00
fallenoak
8231f14cbc fix(gx): correct failure to copy more than the first 4 bytes in Blit_uint32_uint32 2026-07-25 22:48:43 -05:00

View File

@ -37,7 +37,7 @@ void Blit_uint16_uint16(const C2iVector& size, const void* in, uint32_t inStride
char* out_ = reinterpret_cast<char*>(out);
for (int32_t i = 0; i < size.y; i++) {
memcpy(out, in, 2 * size.x);
memcpy(out_, in_, 2 * size.x);
in_ += inStride;
out_ += outStride;
}
@ -53,7 +53,7 @@ void Blit_uint32_uint32(const C2iVector& size, const void* in, uint32_t inStride
char* out_ = reinterpret_cast<char*>(out);
for (int32_t i = 0; i < size.y; i++) {
memcpy(out, in, 4 * size.x);
memcpy(out_, in_, 4 * size.x);
in_ += inStride;
out_ += outStride;
}