- [FIX] ui module should only update renderer when it actually changes

- [NEW] Disassembly window now can scroll with cursors or mouse wheel
- [NEW] Added valgrind script and supporting file
This commit is contained in:
2024-12-06 11:53:31 +01:00
parent 80a8d3b0cd
commit 970aaa518f
7 changed files with 85 additions and 33 deletions

1
ui.cpp
View File

@@ -39,6 +39,7 @@ namespace ui
void setrenderer(SDL_Renderer *renderer)
{
if (!surf) init();
if (ren==renderer) return;
ren = renderer;
if (tex) SDL_DestroyTexture(tex);
tex = SDL_CreateTextureFromSurface(ren, surf);