Commit graph

394 commits

Author SHA1 Message Date
Kp 3ff4726702 Remove unused arch/linux files 2013-03-09 20:29:20 +00:00
Kp 769abf99a1 Remove unused arch/include/gui.h 2013-03-09 20:29:20 +00:00
Kp cf613c84ca Fix bug that last object is skipped when caching OGL textures 2012-12-08 21:57:29 +00:00
Kp 8d39b2b7ae Push down inclusion "args.h" from physfsx.h into sources
This is not needed for the header, and makes the header non-common.
2013-03-03 19:41:09 +00:00
Kp a81afea7fe Rename include/error.h to include/dxxerror.h
Avoid conflict with generic system header.
2012-07-07 18:35:06 +00:00
Kp 66cf62e359 Normalize whitespace in copyright header to match D1X-Rebirth 2013-02-24 02:40:43 +00:00
Kp f9397bdfc5 Generate resource file at build time 2013-03-02 21:25:47 +00:00
Kp 93a23298ff Rename D2XMAJORi/D2XMINORi/D2XMICROi to DXX_VERSION_MAJORi/DXX_VERSION_MINORi/DXX_VERSION_MICROi 2013-02-25 01:59:08 +00:00
Kp 5c2d180d0f Normalize comments and whitespace to match D1X 2013-02-25 01:59:08 +00:00
Kp 7f5d61c3ed Remove RCS comment to synchronize code with D1X 2013-02-22 04:32:14 +00:00
Kp 01cb338618 Normalize comments and whitespace to match D1X 2013-02-22 04:32:03 +00:00
zicodxx 125fbb0ab8 Support for Raspberry Pi - patch by derhass 2013-01-22 00:34:06 +01:00
Chris Taylor efe9992ee3 If there's a messagebox to show on exit, and we *were* in fullscreen, don't try to toggle fullscreen and crash 2013-01-12 19:09:23 +08:00
Chris Taylor e4c0b69031 Use new D1XMAJORi / D1XMINORi / D1XMICROi version constants for Mac 2013-01-12 12:35:23 +08:00
zicodxx bf9cdcb04f Changed additive color blending func to GL_ONE, GL_ONE - patch by derhass 2013-01-08 19:12:36 +01:00
zicodxx 714bebe8c3 Added option to hide mouse cursor (without disabling the mouse completely) 2013-01-08 17:47:03 +01:00
zicodxx d6f96ff0e1 Moved screenshot message formating to HUD_init_message - patch by Kp (and me for non-OGL code ;)) 2013-01-03 17:10:56 +01:00
zicodxx d850c5d65e Moved joy_*_handler declarations to joy.h - patch by Kp 2013-01-03 16:37:52 +01:00
zicodxx 9520012d57 Removed 'new' from prototypes; Declared ogl_do_palfx(), ogl_close_pixel_buffers(), ogl_init_pixel_buffers() in gr.h - patches by Kp 2012-11-02 17:51:24 +01:00
zicodxx adbe894e5e Made key_properties readable in other files; Eliminated key_text variable; Marked unicode_frame_buffer as extern in header - patches by Kp 2012-11-02 17:41:40 +01:00
zicodxx 3b25a4dffe Avoid some unnecessary strlen's 2012-09-03 00:45:13 +02:00
zicodxx 7c5aaa29df Redefined lotsa variables, functions and parameters as const and/or static - patch by Kp 2012-07-23 01:17:54 +02:00
zicodxx 29ad124ea3 added songs_play_file() to play any song depending on filename-extension as a more streamlined approach to handle all different kinds of formats; also used for jukebox to make it independent from SDL_mixer; cleaned up supported filename extenstions 2012-06-10 14:02:43 +02:00
zicodxx 70287bfde6 using our own functions for stricmp, strnicmp, strlwr, strupr, strrev with a d_ prefix for all platforms for consistency 2012-05-19 01:36:43 +02:00
zicodxx dbb5eeef35 Made inline functions static 2012-05-14 17:13:27 +02:00
zicodxx 20b8e59305 Incremented version to 0.57.3; Added Release notes 2012-05-10 19:10:49 +02:00
Chris Taylor 311f835bf8 Clicking on mine elements in the editor now works in ogl 2012-04-15 13:45:45 +08:00
Chris Taylor fba833f773 Fix all remaining known editor drawing issues. In ogl: get the texture previews to draw, get userbox borders to draw in the right location, properly underline characters in the menus, draw all the borders properly (i.e. no gap), no scaling fonts. Software render: draw userbox borders again. Both: clear the whole status bar, clear to the right edge of the screen. 2012-04-09 17:30:40 +08:00
Chris Taylor 83bc26ff29 Fix a nasty bug where pressing 'Alt' to explore the editor menubar would split the window stack in two, rendering the editor unresponsive 2012-04-09 17:13:11 +08:00
zicodxx b65f0e6d33 Changed declaration of event_get_idle_second() from int32_t to fix since Windows does not know it without pstypes.h. Included maths.h for this but should now work flawlessly on all platforms 2012-03-30 16:29:11 +02:00
zicodxx 4852ceb347 Allow .flac to be a filename extension for sng file and jukebox 2012-03-28 10:03:26 +02:00
Chris Taylor 4acf60c1c7 Draw in response to EVENT_UI_DIALOG_DRAW, uncomment medlisp_update_screen call. You can now see what you're doing 2012-03-24 17:19:30 +08:00
Chris Taylor 0c7e61de92 Update the canvas data pointers for all windows after changing the screen mode, so the main menu draws properly after leaving the editor 2012-03-24 14:43:45 +08:00
Chris Taylor c0ed4870c5 Draw the editor menubar properly - by drawing in response to EVENT_WINDOW_DRAW and initialising the screen canvas properly. The latter fixes a lot of other editor drawing issues as well 2012-03-24 13:27:27 +08:00
Chris Taylor 2d54617b91 Remove redundant ui_event_process and duplicate mouse.c in ui/. All editor input is now event-based. 2012-03-18 18:03:29 +08:00
Chris Taylor dc84147b51 All gadgets now send events 2012-03-03 20:19:15 +08:00
zicodxx 4366adbea9 break out of loop in event_send() in case window_send_event() closed the window to prevent invalid read on memory 2011-11-27 21:36:02 +01:00
zicodxx 2f08947f48 Introduced extra short based on MULTI_PROTO_VERSION for version-independent Multiplayer-compability-check; Changed version to 0.57.2 to make new version checking not cause problems with stable release 0.57.1; Removed old version_major/minor variables from netgame and player structures since DXX handles this independently; Cleaned up old version stuff and copyright messages 2011-11-02 01:04:42 +01:00
Chris Taylor 6978ef2dd0 Return 1 (event handled) in ui_dialog_handler for mouse button events if the mouse was in the dialog 2011-10-30 19:09:11 +08:00
Chris Taylor 5dc76799f2 Add support for 'modeless' windows - windows that will allow events to be passed on to the underlying window. Intended for the editor 2011-10-09 18:32:53 +08:00
zicodxx 52f3f87359 Avoided variable array initializations which some compilers do not like; Also made sure declarations happen first inside (sub)functions; Fixed set but unused variables 2011-09-26 23:00:24 +02:00
zicodxx d9ca3a2287 Removed support for IPX protocol and MS-DOS-Multiplayer-compability due to age and lack of real need and to really improve on the Multiplayer without adding too much complexity for backwards-compability 2011-09-14 01:15:32 +02:00
Chris Taylor 81f2b39cb3 Define USE_TRACKER for Mac OS X, remove reference to deleted cfile.h 2011-09-13 09:42:37 +08:00
Chris Taylor 94f896c169 Move EVENT_MOUSE_DOUBLE_CLICKED support from ui/mouse.c to arch/sdl/mouse.c for tidiness and to possibly use it outside the editor 2011-09-12 11:03:57 +08:00
zicodxx 7275fd8b87 Changed version to 0.57.1; Updated release notes 2011-07-16 21:21:14 +02:00
zicodxx 5ea72ad2fc Fixing Redbook hooks: Initialize last_check_time in RBACheckFinishedHook(); Execute RBACheckFinishedHook() during EVENT_WINDOW_DRAW in standard_handler() as EVENT_IDLE rarely happens if you have a shivering Joystick connected for example 2011-07-16 16:02:22 +02:00
zicodxx b83e27005f Bail out of hmp_reset() if midiOutOpen fails and return error with -debug set; execute hmp_reset() before first song plays; renamed digi_win32_stop_current_song() to digi_win32_stop_midi_song() to keep naming convention; Fixed some compiler warnings 2011-07-15 10:43:03 +02:00
zicodxx 97f2bb11cb Stability fixes: avoid somfusions with same named variables in one function; Properly sort out players from player list that use too long filenames; Removed call for gr_set_fontcolor in kconfig where no canvas is set, causing crashes when trying to reassign a button, key or axis 2011-07-13 23:26:43 +02:00
zicodxx 325fe4f23f Make sure hmp_reset() is only executed if a song was playing 2011-07-08 01:46:31 +02:00
zicodxx dd991fbf6b Got rid of cfile code: Renamed cfile-functions to use PHYSFSX-naming convention, Replaced cfile-macros with proper PHYSFS(X) calls; Introduced PHYSFSX_exists() which can check case-sensitive or case-insensitive to give more flexibility with game content 2011-06-01 09:59:55 +02:00