mirror of
https://github.com/whoahq/whoa.git
synced 2026-08-04 16:04:30 +03:00
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
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
This commit is contained in:
parent
8231f14cbc
commit
684e293452
@ -37,7 +37,7 @@ void Blit_uint16_uint16(const C2iVector& size, const void* in, uint32_t inStride
|
|||||||
char* out_ = reinterpret_cast<char*>(out);
|
char* out_ = reinterpret_cast<char*>(out);
|
||||||
|
|
||||||
for (int32_t i = 0; i < size.y; i++) {
|
for (int32_t i = 0; i < size.y; i++) {
|
||||||
memcpy(out, in, 2 * size.x);
|
memcpy(out_, in_, 2 * size.x);
|
||||||
in_ += inStride;
|
in_ += inStride;
|
||||||
out_ += outStride;
|
out_ += outStride;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user