+2014-08-27
+ * error file set to unbuffered to prevent truncation in case of crashes
+
2014-08-19
* fixed bug causing wrong screen updates while playing (whole screen
update from backbuffer instead of playfield buffer if REDRAW_ALL set)
conf_mus.h: conf_mus.c
@$(MAKE) auto-conf
-$(TIMESTAMP_FILE): $(SRCS) $(LIBGAME) $(GAME_EM) $(GAME_SP)
+# $(TIMESTAMP_FILE): $(SRCS) $(LIBGAME) $(GAME_EM) $(GAME_SP)
+$(TIMESTAMP_FILE): $(SRCS) $(RNDLIBS)
@date '+"%Y-%m-%d %H:%M"' \
| sed -e 's/^/#define COMPILE_DATE_STRING /' \
> $(TIMESTAMP_FILE)
$(MAKE) -C $(GAME_EM_DIR) clean
$(MAKE) -C $(GAME_SP_DIR) clean
$(RM) $(OBJS)
- $(RM) $(LIBGAME)
- $(RM) $(GAME_EM)
- $(RM) $(GAME_SP)
+ $(RM) $(RNDLIBS)
+# $(RM) $(LIBGAME)
+# $(RM) $(GAME_EM)
+# $(RM) $(GAME_SP)
clean-ico:
$(RM) $(ICONBASE).ico
-#define COMPILE_DATE_STRING "2014-08-19 21:46"
+#define COMPILE_DATE_STRING "2014-08-27 13:39"
Error(ERR_WARN, "cannot open file '%s' for writing: %s",
program.error_filename, strerror(errno));
}
+
+ /* error output should be unbuffered so it is not truncated in a crash */
+ setbuf(program.error_file, NULL);
}
void closeErrorFile()
if (sdl_window != NULL)
{
+#if 0
+ /* if SDL_CreateRenderer() is called from within a VirtualBox Windows VM
+ *without* enabling 2D/3D acceleration and/or guest additions installed,
+ it will crash if flags are *not* set to SDL_RENDERER_SOFTWARE (because
+ it will try to use accelerated graphics and apparently fails miserably) */
+ if (sdl_renderer == NULL)
+ sdl_renderer = SDL_CreateRenderer(sdl_window, -1, SDL_RENDERER_SOFTWARE);
+#else
if (sdl_renderer == NULL)
sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0);
+#endif
if (sdl_renderer != NULL)
{