diff options
author | Richard Knight <q@1bpm.net> | 2021-07-21 22:36:54 +0100 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2021-07-21 22:36:54 +0100 |
commit | cf0f0faa24b90ceb7095b19f69314059f9304204 (patch) | |
tree | 36f4c59352302edcfd682406138548eded092f1d /src | |
parent | 2c2b195cdbef7fdd6483d85dbe5234fbaa921f74 (diff) | |
download | csound-sdl-cf0f0faa24b90ceb7095b19f69314059f9304204.tar.gz csound-sdl-cf0f0faa24b90ceb7095b19f69314059f9304204.tar.bz2 csound-sdl-cf0f0faa24b90ceb7095b19f69314059f9304204.zip |
cmake files update
Diffstat (limited to 'src')
-rw-r--r-- | src/opcodes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opcodes.cpp b/src/opcodes.cpp index 1531029..04be9e8 100644 --- a/src/opcodes.cpp +++ b/src/opcodes.cpp @@ -103,17 +103,17 @@ struct sdlinit : csnd::Plugin<4, 4> { sdl->screen_height = ySize; if (SDL_Init(SDL_INIT_VIDEO) < 0) { - throw std::runtime_error(csound->strdup(SDL_GetError())); + throw std::runtime_error(csound->strdup((char*) SDL_GetError())); } SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1"); sdl->window = SDL_CreateWindow(windowName, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, xSize, ySize, SDL_WINDOW_SHOWN ); if (sdl->window == NULL) { - throw std::runtime_error(csound->strdup(SDL_GetError())); + throw std::runtime_error(csound->strdup((char*) SDL_GetError())); } sdl->renderer = SDL_CreateRenderer(sdl->window, -1, SDL_RENDERER_ACCELERATED); if (sdl->renderer == NULL) { - throw std::runtime_error(csound->strdup(SDL_GetError())); + throw std::runtime_error(csound->strdup((char*) SDL_GetError())); } sdl->initialised = true; } |