mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-28 12:39:53 +02:00
Update to v106r30 release.
byuu says: Changelog: - nall/GNUmakefile: fixed findstring parameter arguments [Screwtape] - nall/Windows: always include -mthreads -lpthread for all applications - nall/memory: code restructuring I really wanted to work on the new PPU today, but I thought I'd spend a few minutes making some minor improvements to nall::memory, that was five and a half hours ago. Now I have a 67KiB diff of changes. Sigh.
This commit is contained in:
@@ -215,7 +215,7 @@ private:
|
||||
|
||||
LPDIRECT3DVERTEXBUFFER9* vertexPointer = nullptr;
|
||||
_vertexBuffer->Lock(0, sizeof(Vertex) * 4, (void**)&vertexPointer, 0);
|
||||
memory::copy(vertexPointer, vertex, sizeof(Vertex) * 4);
|
||||
memory::copy<Vertex>(vertexPointer, vertex, 4);
|
||||
_vertexBuffer->Unlock();
|
||||
|
||||
_device->SetStreamSource(0, _vertexBuffer, 0, sizeof(Vertex));
|
||||
|
@@ -52,7 +52,7 @@ struct VideoGLX2 : Video {
|
||||
|
||||
auto clear() -> void {
|
||||
if(!ready()) return;
|
||||
memory::fill(_glBuffer, _glWidth * _glHeight * sizeof(uint32_t));
|
||||
memory::fill<uint32_t>(_glBuffer, _glWidth * _glHeight);
|
||||
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glFlush();
|
||||
|
@@ -38,7 +38,7 @@ struct VideoXVideo : Video {
|
||||
|
||||
auto clear() -> void {
|
||||
if(!ready()) return;
|
||||
memory::fill(_buffer, _bufferWidth * _bufferHeight * sizeof(uint32_t));
|
||||
memory::fill<uint32_t>(_buffer, _bufferWidth * _bufferHeight);
|
||||
//clear twice in case video is double buffered ...
|
||||
output();
|
||||
output();
|
||||
@@ -335,7 +335,7 @@ private:
|
||||
uint32_t* output = (uint32_t*)_image->data;
|
||||
|
||||
for(uint y : range(height)) {
|
||||
memory::copy(output, input, width * 4);
|
||||
memory::copy<uint32_t>(output, input, width);
|
||||
input += _bufferWidth;
|
||||
output += _bufferWidth;
|
||||
}
|
||||
|
Reference in New Issue
Block a user