MageKing17
aaec401c8f
Removing unused code from hud.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11315 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-19 00:10:27 +10:00
Goober5000
4f06fd2435
additional string safety
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11140 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-15 18:22:57 +10:00
Goober5000
7cd97633b6
Yarn's patch for Polish localization
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11044 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-09 20:37:02 +10:00
niffiwan
3cccc7cb13
Fix gcc warnings in hud/hud.cpp
...
declaration of ‘render’ shadows a member of 'this'
declaration of ‘font’ shadows a global declaration [-Wshadow]
variable ‘flags’ set but not used [-Wunused-but-set-variable]
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10954 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-27 20:39:18 +10:00
niffiwan
b19622cf96
Fix gcc warning in hud/hud.cpp
...
the address of ‘Hud_text_flash’ will always evaluate as ‘true’ [-Waddress]
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10929 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-24 19:45:28 +10:00
Echelon9
327c67ff1d
Address clang warnings - hud/hud.cpp:1310:3: warning: delete called on 'HudGauge' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10885 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-14 19:02:30 +10:00
niffiwan
027f218f7f
Allow any resolution for mainhalls (From Yarn)
...
Also includes support for more than two mainhall resolutions, zooming
so one mainhall can adapt to multiple resolutions, setting new mainhall
fonts, help overlays for all resolutions and adjustable tooltip padding.
Also allows preload screens to be any resolution & aspect ratio.
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10844 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-05 10:38:07 +10:00
The_E
cba1eb07db
Fix for Mantis 2982: Removes superfluous Assert.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10820 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-19 20:12:53 +10:00
niffiwan
a545580a5a
Coverity ID 1093533 Negative array index read
...
This negative read occurs regularly, but it'd be very very rare for that
random read value to evaluate to OBJ_WEAPON and cause further issues.
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10773 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-09 13:48:53 +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
niffiwan
706152c7d5
Add common parsing function for hud tables (originally from m!m with updates from me)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10208 387891d4-d844-0410-90c0-e4c51a9137d3
2013-12-11 18:52:14 +10:00
Echelon9
e5115993bf
AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) in hud_close()
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10109 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:35 +10:00
niffiwan
797ffdf0f4
Fix mantis 2883
...
update hud_num_make_mono (& callers) to handle the font number
add partial support for specifying special char indexes for individual fonts
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9985 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-31 19:25:03 +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
Echelon9
cf8bad999b
Fix Mantis 2828: AddressSanitizer: global-buffer-overflow in ship_subsys_disrupted() ship.cpp:8066
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9627 387891d4-d844-0410-90c0-e4c51a9137d3
2013-04-14 13:00:35 +10:00
karajorma
ac6796f5af
Add all the strings that had no translation.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9600 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-30 15:36:18 +10:00
The_E
17a48525e7
Prevent the hud-set-frame sexp from accidentally causing badness by setting an invalid frame offset
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9510 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:44 +10:00
Goober5000
a916633b46
onlyjob's spelling fixes, per Mantis #2777
2013-01-13 09:50:08 +00:00
The_E
dee413b32c
Fix for Mantis 2754: Reset the frame offset for custom HUD gauges when reinitializing.
2012-12-14 12:07:30 +00:00
Valathil
eb434cf828
Fix for Mantis 2376: Don't calculate nose offsets for chase view.
2012-11-20 20:54:28 +00:00
The_E
4c9333a6f0
PVS Studio fix: String play_callsign is not used anywhere
2012-11-03 09:28:49 +00:00
Swifty
2132f14d60
Fixed scaling and positioning issues with cockpit displays. Added Display Offsets: to all RTT capable gauges.
2012-10-15 04:45:02 +00:00
Echelon9
c1121a56bb
Fix: Format string is not a string literal (potentially insecure)
2012-10-08 15:17:43 +00:00
Swifty
2f22a5ce67
Created Flight Path Marker gauge.
2012-09-10 05:33:17 +00:00
Swifty
e2ee74c387
Added bottom offset parameter to the Damage gauge in hud_gauges.tbl
2012-09-10 05:21:46 +00:00
Swifty
63e43021ed
Added method to the HudGauge class that renders full color bitmaps.
2012-09-10 04:39:41 +00:00
Goober5000
4ab6f03c9e
make red-alert not dependent on whether the HUD is visible or not
...
(fixes Mantis #2683 )
2012-08-24 04:09:05 +00:00
niffiwan
56ab99d5cd
Fix for mantis #2666 : call the new HUD renderBitmap function for the red alert notification background image
2012-06-23 03:02:33 +00:00
Goober5000
7ef1c9f99a
MSVC6 compatibility
2012-06-17 05:43:28 +00:00
Echelon9
20ac5cb868
GCC warning: defined but not used
2012-06-13 14:43:08 +00:00
Echelon9
a8c54f5b9d
GCC warning: initialisation reorder
2012-05-27 14:46:00 +00:00
Echelon9
0a45d3df33
PVS-Studio fix: The 'Players' pointer is used simultaneously as an array and as a pointer to single object. Check lines: 1392, 1410.
2012-04-01 08:05:29 +00:00
Goober5000
8cd3cbc721
considering that both the HUD and sexp_replace_variable_names_with_values work with SCP_string, just use SCP_string directly and remove the character limit
...
also, MESSAGE_LENGTH isn't 32 characters
2012-03-16 04:09:30 +00:00
Swifty
d84d9a8f5d
Allowed hud-set-directive and hud-set-message to set custom gauge text up to MESSAGE_LENGTH instead of NAME_LENGTH.
2012-03-13 06:54:13 +00:00
Echelon9
35e26fb068
Diaspora code: Fix for Mantis 840 - Sounds for DRADIS, patch by m_m
2012-02-28 14:19:34 +00:00
Swifty
dd1c4a436c
Fixed Mantis 2413. hud-set-color changes to the HUD will no longer reset when pausing or entering options menu. Introduced Color entry fields for hud_gauges.tbl.
2012-02-06 10:01:01 +00:00
Swifty
3affb86b52
Removed configOverride from HudGauge class since we don't even use it.
2012-02-05 03:41:31 +00:00
The_E
8b65d3e3ce
Patch for Mantis 2391 (again): Removes a few leftovers from the old HUD code that generated warnings unnecessarily.
2011-11-15 23:25:50 +00:00
IssMneur
29b4a6c922
From m!m: patch to add support for customizable cockpit sounds. See: http://www.hard-light.net/forums/index.php?topic=78675.0
2011-10-22 22:11:31 +00:00
Zacam
876289a4b2
From ni1s: -Wreorder warnings clean up for GCC output.
2011-10-19 07:36:21 +00:00
The_E
ca52181adb
From Eli2: Patch for Mantis 2489: adjust-audio-volume doesn't affect subspace
2011-10-02 11:08:41 +00:00
The_E
dd1d682d9b
From m!m: Allows per-ship customization of ship sounds in ships.tbl. See Wiki for details.
2011-10-01 19:16:38 +00:00
IssMneur
0717ad3d13
PVS-Studio fix: V512 A call of the 'memcpy' function will lead to overflow of the buffer '& x'. (pstypes.h:131)
2011-09-08 05:39:53 +00:00
Goober5000
3ce69f150a
waypoints and waypoint paths now have dynamic limits
2011-08-30 03:35:42 +00:00
Echelon9
9a76fcfe78
PVS-Studio fix: V515 The 'delete' operator is applied to non-pointer (hud.cpp).
2011-08-29 16:08:03 +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
3a9f72c231
PVS-Studio fix: A call of the 'memset' function will lead to underflow of the buffer 'txt'. In HudGaugeMultiMsg::render()
2011-08-11 15:31:44 +00:00
Echelon9
f2f77ccc5f
PVS-Studio fix: This if...then...else block was redundant in HudGaugeSupport::render(), as each 'then' block did the same thing
2011-08-10 14:01:15 +00:00
Swifty
f35b322397
Ship-specific gauges will only get preprocessed once.
2011-08-05 09:06:31 +00:00
Swifty
5283c36d34
Let's try this again without breaking the orb radar: Optimized BSG radar and cockpit displays. Fixed cockpit models not switching when changing ships.
2011-08-04 11:01:28 +00:00