Mercurial > repos > blastem
comparison render_sdl.c @ 2532:f4a471730ba4
Implement clipboard paste for SC-3000
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 26 Nov 2024 23:47:38 -0800 |
parents | 573da2a2e6bb |
children | 35f765c2bc87 |
comparison
equal
deleted
inserted
replaced
2531:f973651b48d7 | 2532:f4a471730ba4 |
---|---|
2571 uint8_t render_create_thread(render_thread *thread, const char *name, render_thread_fun fun, void *data) | 2571 uint8_t render_create_thread(render_thread *thread, const char *name, render_thread_fun fun, void *data) |
2572 { | 2572 { |
2573 *thread = SDL_CreateThread(fun, name, data); | 2573 *thread = SDL_CreateThread(fun, name, data); |
2574 return *thread != 0; | 2574 return *thread != 0; |
2575 } | 2575 } |
2576 | |
2577 char *render_read_clipboard(void) | |
2578 { | |
2579 char *tmp = SDL_GetClipboardText(); | |
2580 char *ret = strdup(tmp); | |
2581 SDL_free(tmp); | |
2582 return ret; | |
2583 } |