aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2021-07-21 22:36:54 +0100
committerRichard Knight <q@1bpm.net>2021-07-21 22:36:54 +0100
commitcf0f0faa24b90ceb7095b19f69314059f9304204 (patch)
tree36f4c59352302edcfd682406138548eded092f1d /src
parent2c2b195cdbef7fdd6483d85dbe5234fbaa921f74 (diff)
downloadcsound-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.cpp6
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;
}