Kp
|
dd8703d461
|
Remove SDL/ in #include statements
|
2013-06-30 02:22:56 +00:00 |
|
Kp
|
9e8ef71157
|
Replace MALLOC+memset with CALLOC
|
2013-07-13 02:31:27 +00:00 |
|
Kp
|
0f22f4b0b9
|
Fix sign mismatch in timer_delay2
|
2013-07-14 23:20:29 +00:00 |
|
Kp
|
a9c257f715
|
Use SDLK_UNKNOWN for unmapped entries
|
2012-11-24 16:46:43 +00:00 |
|
Kp
|
8e94b21061
|
Add size information to improve -fmudflap
|
2012-11-11 00:12:17 +00:00 |
|
Kp
|
2d14584877
|
Remove unused double-linked list code
|
2013-07-10 21:44:38 -05:00 |
|
Kp
|
a83ab2bb74
|
Use MALLOC wrapper for SDL window handling
|
2013-06-30 23:15:38 +00:00 |
|
zico
|
3405bf6562
|
Added a lot of status messages for RBA code shown with -verbose, hopefully making it easier for users to track down problems and made all RBA messages start with RBAudio prefix
|
2013-04-22 12:37:59 +02: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
|
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 |
|
zicodxx
|
714bebe8c3
|
Added option to hide mouse cursor (without disabling the mouse completely)
|
2013-01-08 17:47:03 +01:00 |
|
zicodxx
|
d850c5d65e
|
Moved joy_*_handler declarations to joy.h - patch by Kp
|
2013-01-03 16:37:52 +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 |
|
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
|
4852ceb347
|
Allow .flac to be a filename extension for sng file and jukebox
|
2012-03-28 10:03:26 +02: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 |
|
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 |
|
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 |
|
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
|
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 |
|
zicodxx
|
d34936d775
|
Added own channel management to SDL_mixer sound interface since the builtin channel management of this lib cannot handle our needs; Little code cleanup
|
2011-05-30 02:17:45 +02:00 |
|
zicodxx
|
52a4c9ff59
|
In event_process() if a window closes while being drawn and there isn't a previous window we can get the next from just finish processing for this frame
|
2011-05-26 09:41:28 +02:00 |
|
zicodxx
|
4e21bb9cd2
|
When reading ingame controls only flush mouse delta timer-based since reading is event-based already, allowing high precision no matter the game speed; Removed Mouse smoothing/filtering as it's now unnecessary due to event-based motion handling
|
2011-04-22 13:01:38 +02:00 |
|
zicodxx
|
89ef310ec6
|
Added SDLK_WORLD_** symbols to keyboard array to enable layout specific keys and make the game more flexible
|
2011-04-21 21:22:46 +02:00 |
|
Chris Taylor
|
cc5a7d1359
|
Fix broken m3u playlist support (in jukebox_play() path resolving); point to default descent.m3u playlist for Mac OS X (will be included in bundle); better error reporting in mix_play_file(); only make relative Jukebox path in the menu absolute after browsing it - relative paths are more flexible; allow select_file_recursive() to figure out PhysicsFS relative paths passed to it; stop the music if Jukebox is chosen and unavailable (used to just keep playing the last song)
|
2011-04-18 20:32:36 +08:00 |
|
zicodxx
|
c960d5505a
|
Added cv_fade_level to canvas structure to replace Gr_scanline_darkening_level; Added cv_blend_func to canvas structure to set blending; Introduced gr_settransblend to set cv_fade_level and cv_blend_func; Added function to set normal blending, additive alpha blending and additive color blending; Moved Special transparency effects from g3_draw_bitmap to render_object to set individual transparency and/or blending for each object outside of OpenGL-specific code; Added special blending for fuelcenter and force field effects as well; Removed unused LASER_HACK code; Renamed OglAlphaEffects variable of PalyerCfg to AlphaEffects as I plan to implement this kind of effects for Software renderer, too
|
2011-02-23 17:46:39 +01:00 |
|
zicodxx
|
097dd32c5a
|
New approach to handle a bunch of closing windows - removed window_do_close() again, reworked game_leave_menus by checking window_get_front() and closing this window until it's Game_wind, while event_process checking if window still exists after drawing and if not, take next window from previous which should be updated by then
|
2011-02-12 23:58:41 +01:00 |
|
zicodxx
|
031420cf74
|
Simplified ogl version of gr.c in terms of SDL video flags and fullscreen toggle; Added command-line/INI option to remove borders from windowed program
|
2011-02-10 15:30:08 +01:00 |
|
zicodxx
|
c7a65c9313
|
Included new window structure flag w_closing_state and let window_close() set this flag - after drawing all windows, check them again and call window_do_close() which then actually closes the window(s) marked to. Solving all sorts of problems when windows close while being drawn (network error messageboxes, game_leave_menus(), etc.)
|
2011-02-03 11:48:27 +01:00 |
|
zicodxx
|
96782e092a
|
Added event types for all input actions; Rewrote kconfig code to work with events; static defined inputs will not trigger kconfig-mapped inputs anymore; Simplified keyboard, mouse and joystick code a lot due to event-based handling; Added function to toggle SDL key repeats on and off; Put timer_update() to event_process; Removed return when event_poll() is idle to get cursor hiding to work again; Added a small delay between cursoe hiding and re-enabling to cursor will not accidentially enable by SDL event centering cursor while hiding
|
2011-02-02 01:36:49 +01:00 |
|
zicodxx
|
518e01fbe8
|
In event_process() check for wind->next before sending EVENT_WINDOW_DRAW in case drawing will free wind
|
2011-01-26 11:55:47 +01:00 |
|
zicodxx
|
33d3b1c6a8
|
Added a simple random function for the Jukebox; Removed one small printf I once added for debugging
|
2011-01-20 12:17:30 +01:00 |
|
zicodxx
|
9f6cbc8c6c
|
Retired most of the Assembler code except the generic i386 scanline renderer; Removed all leftovers of Direct3D implementation; On the way make a some code more similar between D1X-Rebirth and D2X-Rebirth
|
2011-01-19 21:35:14 +01:00 |
|
Chris Taylor
|
b64794e1b4
|
Still send idle events when receiving SDL joystick events, fixing possible joystick issues
|
2011-01-17 12:17:21 +08:00 |
|
Chris Taylor
|
030aef43e3
|
For editor, replace use of ui_mega_process() with event_process(), with the editor's own default event handler; add EVENT_MOUSE_MOVED event with event_mouse_get_delta() accessor; add event_key_get() to replace ugly casting; rename mouse_get_button() with event_mouse_get_button() to keep with name convention; only send idle events when there are no input events so editor still works properly (or the same anyway); add and use event_send() function for input events (including idle)
|
2011-01-14 17:51:13 +08:00 |
|
zicodxx
|
02c5c1bda9
|
Reverted most of the last commit - didn't work well when timer was updated too frequently
|
2011-01-11 00:37:45 +01:00 |
|