mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 18:28:28 +00:00
Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!)
Closes https://github.com/libsdl-org/SDL/pull/5811
This commit is contained in:
parent
b0e827fb65
commit
adc6875870
18 changed files with 49 additions and 44 deletions
|
@ -431,7 +431,7 @@ SDL_Fcitx_UpdateTextRect(SDL_Rect *rect)
|
|||
SDL_Rect *cursor = &fcitx_client.cursor_rect;
|
||||
|
||||
if (rect) {
|
||||
SDL_memcpy(cursor, rect, sizeof(SDL_Rect));
|
||||
SDL_copyp(cursor, rect);
|
||||
}
|
||||
|
||||
focused_win = SDL_GetKeyboardFocus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue