projects
/
summerhack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolution don't care option, heuristic to avoid multimon sizes
[summerhack]
/
src
/
3dengfx
/
src
/
fxwt
/
fxwt_sdl.cpp
diff --git
a/src/3dengfx/src/fxwt/fxwt_sdl.cpp
b/src/3dengfx/src/fxwt/fxwt_sdl.cpp
index
e0cd95e
..
d3e1112
100644
(file)
--- a/
src/3dengfx/src/fxwt/fxwt_sdl.cpp
+++ b/
src/3dengfx/src/fxwt/fxwt_sdl.cpp
@@
-59,6
+59,11
@@
void fxwt::set_window_title(const char *title) {
SDL_WM_SetCaption(title, 0);
}
SDL_WM_SetCaption(title, 0);
}
+void fxwt::show_cursor(bool show)
+{
+ SDL_ShowCursor(show ? 1 : 0);
+}
+
void fxwt::swap_buffers() {
SDL_GL_SwapBuffers();
#if defined(_POSIX_PRIORITY_SCHEDULING)
void fxwt::swap_buffers() {
SDL_GL_SwapBuffers();
#if defined(_POSIX_PRIORITY_SCHEDULING)
@@
-70,7
+75,7
@@
void fxwt::swap_buffers() {
int fxwt::main_loop() {
set_verbosity(3);
int fxwt::main_loop() {
set_verbosity(3);
-
+
SDL_EnableKeyRepeat(300, 20);
while(1) {
SDL_EnableKeyRepeat(300, 20);
while(1) {