aboutsummaryrefslogtreecommitdiff
path: root/src/opcodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opcodes.cpp')
-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;
}