1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-12 09:28:10 +00:00

Emulator: allow software renderer

Makes emulator usable in containers
This commit is contained in:
Yura Pakhuchiy 2018-03-30 17:13:31 +07:00 committed by Pavol Rusnak
parent 7fc58eb5db
commit 3a3bea1401

View File

@ -67,7 +67,7 @@ void oledInit(void) {
exit(1); exit(1);
} }
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); renderer = SDL_CreateRenderer(window, -1, 0);
if (!renderer) { if (!renderer) {
fprintf(stderr, "Failed to create renderer: %s\n", SDL_GetError()); fprintf(stderr, "Failed to create renderer: %s\n", SDL_GetError());
exit(1); exit(1);