asarium
da0ef89ac5
Fix for Coverity 1237276: Uninitialized scalar field
...
The field will contain an arbitrary value left over from earlier computations.
In subtitle::subtitle(int, int, char const*, char const*, float, float, color const*, int, bool, bool, int, int, bool): A scalar field is not initialized by the constructor
2015-05-03 14:55:06 +02:00
Goober5000
6052d9c4a4
since we can replace variables in SCP_string, use that instead of an arbitrary char[256] buffer also const-correctness in the constructor
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11039 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-09 20:37:02 +10:00
Goober5000
475e4d5d35
Yarn's fix for Mantis #2362 (scale images properly with show-subtitle-image)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10865 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-05 10:38:09 +10:00
The_E
6e91857745
From Yarn: Fixes interface graphics scaling issues. If, for some reason, you want to have the interface graphics stretched, use the -stretch_menu commandline flag.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10544 387891d4-d844-0410-90c0-e4c51a9137d3
2014-03-30 12:39:54 +10:00
Goober5000
886018d28f
here a const, there a const, everywhere a const const
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9801 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-20 19:46:41 +10:00
The_E
20abba69dc
Fix my fix from revision 9305: Properly check for null pointer dereference
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9651 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:15 +10:00
Valathil
fd125acb19
Fix for Mantis 1978: Add eyepoint directions to cameras; Add guncam view for cameras that are bound to turrets
2012-12-14 22:18:45 +00:00
The_E
a71b5f4247
PVS Studio fix: Add checks against NULL pointer dereferences
2012-11-03 09:23:23 +00:00
chief1983
4e5d3e2e57
Fix all the 'no newline at end of file' warnings I saw thrown by gcc on FreeBSD.
2012-11-02 17:30:17 +00:00
Goober5000
ca08b3813a
reverting 9121 -- I'll give karajorma the benefit of the doubt and assume he just didn't see the compatibility additions
2012-08-19 07:20:06 +00:00
karajorma
8e043a0019
Revert 9119 and 9120 since at least one of them breaks compatibility with 3.6.12
2012-08-19 06:13:45 +00:00
Goober5000
53f080ea67
all mod_table flags should also default to NO
...
also, change the generic_anim flag on whether to use the HUD color settings to be a bit more descriptive
2012-08-19 03:27:31 +00:00
The_E
b006d8de1a
Since we can't change the default cutscene camera behaviour (switching off the HUD when cutscene camera is active), this introduces a mod.tbl setting to alter this behaviour.
...
The new setting is called "$Cutscene camera disables HUD:", is a boolean, and defaults to true.
2012-05-11 07:57:01 +00:00
Echelon9
6d4f266e52
Use SCP_* types to access STL types wherever possible. This allows more complete memory monitoring
2011-10-03 09:06:56 +00:00
Echelon9
10f9ecac09
Documentation: Code cleanup of camera.cpp and camera.h, and removal of redundant function
2011-09-12 12:15:27 +00:00
Echelon9
80a027a400
PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
...
For further discussion see, http://www.viva64.com/en/b/0093/
The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.
Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
Echelon9
a248a37d58
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
2011-08-24 13:37:01 +00:00
Echelon9
2808f6624d
PVS-Studio fix: Expression 'idx < 0' is always false. Unsigned type value is never < 0.
2011-08-11 14:15:05 +00:00
The_E
7f5c3d343e
Valathil's code cleanup patch.
2011-07-20 18:04:43 +00:00
Echelon9
eb129200a1
Fix: Convert a further subset of strcpy() to the SAFE_STRINGS strcpy_s() version
2010-12-20 04:28:01 +00:00
Goober5000
0458d83f94
a couple of small but important fixes to the subtitle code, including (finally) the complete fix for Mantis #2152
2010-03-20 06:37:26 +00:00
Goober5000
725b48d2b9
handle variables in show-subtitle
2010-03-19 07:39:51 +00:00
Goober5000
5a3fa6f576
allow specification of fonts via show-subtitle
2010-03-19 06:31:15 +00:00
Goober5000
7fa0a70c9e
this is a long-overdue rewrite of WMC's show-subtitle sexps
2010-03-15 01:55:40 +00:00
Wanderer
5983a47bc4
fix for mantis 2125
2010-03-04 20:34:52 +00:00
portej05
585981e24b
post-frame-shaded subtitles! Pass an argument 13 which is either (true) or (false) in order to make use of this.
...
Fix for multimonitor focus loss issue associated with the mouse at the initialisation of the mainhall
2009-09-09 11:52:42 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
6a8d45c93d
Replace most instances of std::vector with SCP_vector. Memory is now all run through vm_malloc and vm_free.
...
Watch it go up AND down in mission.
2009-07-11 07:07:57 +00:00
Wanderer
e302a90a1e
add 'missing' casts
2009-03-06 15:08:16 +00:00
WMCoolmon
4bff232cad
Change set-fov back to a global override
2008-08-30 19:48:20 +00:00
WMCoolmon
f51a8cf3c0
New camera code core commit, delta bank code.
2008-08-30 10:42:27 +00:00
taylor
7ed32a9525
fix subtitle centering for non-1024x768 resolutions (Mantis #1630 )
2008-03-31 13:51:39 +00:00
taylor
88693b7388
fix various compiler warnings
2008-03-29 06:30:20 +00:00
Backslash
dadce33a59
Cutscene subtitle positioning fix for resolutions other than 1024x768. Code by MikeStar.
2007-06-24 23:32:16 +00:00
taylor
05bc308f89
Vodka, it's a killer ;)
2006-05-13 07:03:41 +00:00
wmcoolmon
4e3eab978c
Bump this, too
2006-04-03 09:07:34 +00:00
wmcoolmon
965cc660b9
show-subtitle's got its groove back
2006-04-03 09:05:37 +00:00
wmcoolmon
4e5089a7bd
camera code updates (Translation should be possible now)
2006-04-03 07:45:15 +00:00
taylor
be031fa0e3
fix text subtitles that I so kindly broke not too long ago
2006-03-22 08:34:17 +00:00
taylor
c41aa97d85
various camera fixes (did this ever work properly?)
...
- handle basic init properly for those platforms that do/don't zero-initialize STL vector
- allow text images without witten text
- don't try to process text if it's NULL or of 0 length
- don't get freaky with image handling
- add clone/assignment operator so that push_back() will not screw up bmpman stuff
2006-02-16 05:07:08 +00:00
wmcoolmon
adb2bba03f
Oops. Breathalyzer standing by...
2005-09-20 04:51:01 +00:00
wmcoolmon
31ebacbb5f
Some work I did on the camera code
2005-09-20 04:48:52 +00:00
wmcoolmon
b657066dac
Fixed bug where camera reset when rotation complete
2005-07-23 18:25:42 +00:00
taylor
7f786136a6
s/vector/vec3d/g, better support for different compilers (Jens Granseuer)
2005-04-05 05:53:25 +00:00
wmcoolmon
2c2a6334db
Big, massive, codebase commit. I have not removed the old ai files as the ones I uploaded aren't up-to-date (But should work with the rest of the codebase)
2005-03-25 06:57:38 +00:00
taylor
405ba066b9
change min/max to MIN/MAX to fix GCC problems
...
add lab stuff to Makefile
build unbreakage for everything that's not MSVC++ 6
lots of warning fixes
fix OpenGL rendering problem with ship insignias
no Warnings() in non-debug mode for Linux (like Windows)
some campaign savefile fixage to stop reverting everyones data
2005-03-10 08:00:18 +00:00
wmcoolmon
b25707b74d
Camera code updates (subtitles)
2005-02-20 23:14:00 +00:00
taylor
bec567bbab
fix an issue with bm_set_components()
...
abs is for ints fabsf is for floats (camera.cpp)
make the in-cockpit stuff OGL friendly
2005-02-10 14:38:50 +00:00
wmcoolmon
de684f1e78
Updated camera code
2005-02-06 22:21:25 +00:00
wmcoolmon
defdb93536
Camera code
2005-01-27 04:16:28 +00:00