removed one use of memcpy and replaced with *a = *b
parent
2457858399
commit
64b8dbcbf3
|
@ -9,6 +9,7 @@
|
||||||
#include "SDL2/SDL_render.h"
|
#include "SDL2/SDL_render.h"
|
||||||
#include "SDL2/SDL_surface.h"
|
#include "SDL2/SDL_surface.h"
|
||||||
#include "SDL2/SDL_ttf.h"
|
#include "SDL2/SDL_ttf.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#define NUM_DRAWCMDS 2048
|
#define NUM_DRAWCMDS 2048
|
||||||
|
|
||||||
|
@ -337,7 +338,7 @@ static void _insert_drawcmd_at(size_t index, const drawcmd_t* cmd) {
|
||||||
memmove(dest, insertpoint, count*sizeof(drawcmd_t));
|
memmove(dest, insertpoint, count*sizeof(drawcmd_t));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
memcpy(insertpoint, cmd, sizeof(drawcmd_t));
|
*insertpoint = *cmd;
|
||||||
insertpoint->ui = _render_mode == 1;
|
insertpoint->ui = _render_mode == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue