Descent3/lib
Jan Engelhardt 46787709d7 lib: avoid shifting negative values in GR_RGB
$GIT/lib/grdefs.h:85:67: runtime error: left shift of negative value -1
$GIT/lib/grdefs.h:85:79: runtime error: left shift of negative value -1

This happens because of:

grtext/grtext.cpp:966
966           col = GR_RGB(str[i + 1], str[i + 2], str[i + 3]);
(gdb) p str
$2 = 0x46437fe <Grtext_buffer+62> "\001\377\377\377Max. Trans-Atmospheric"
(gdb) ptyp str
type = char *

Make GR_RGB take uint8_ts, which causes the desired conversion at
GR_RGB callsites.
2024-09-12 14:25:04 +02:00
..
linux [Lib] Deleted unused header files. 2024-08-20 20:03:02 +02:00
win Fix spello "it's" 2024-09-03 13:26:51 +02:00
3d.h [Cleanup] Removed function declarations that are not implemented. 2024-08-20 20:03:02 +02:00
AppConsole.h Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
appdatabase.h SDL2 editor: compile win32 and dd_grwin32 with directX 2024-06-29 18:21:37 +02:00
application.h SDL2 editor: compile win32 and dd_grwin32 with directX 2024-06-29 18:21:37 +02:00
bitmap.h Fix spello "its" 2024-09-03 13:26:51 +02:00
bumpmap.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
byteswap.h Implementing C++ byteswap functions 2024-04-23 21:18:07 +03:00
Controller.h Force makeshort/makeword to treat inputs as unsigned 2024-09-07 23:02:13 +02:00
crossplat.h Move platform-specific defines and macros to own file crossplat.h 2024-08-20 23:09:27 +03:00
d3_version.h.in Introducing git revision in source code 2024-04-28 22:05:26 +03:00
d3events.h Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
d3x_op.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
Ddgr.h [Cleanup] Remove unused code. 2024-08-20 20:03:02 +02:00
ddvid.h more software renderer code removal 2024-05-09 12:11:49 +01:00
dedicated_server.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
demofile.h Remove unused DemoPlayAutoDemo() 2024-08-15 11:50:36 +03:00
directplay.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
findintersection_external.h Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
forcefeedback.h [Cleanup] Removed function declarations that are not implemented. 2024-08-20 20:03:02 +02:00
game2dll.h Fix spello "its" 2024-09-03 13:26:51 +02:00
grdefs.h lib: avoid shifting negative values in GR_RGB 2024-09-12 14:25:04 +02:00
IOOps.h Move IOOpts.h into main tree 2024-06-17 01:55:02 +03:00
joystick.h [Cleanup] Removed function declarations that are not implemented. 2024-08-20 20:03:02 +02:00
lightmap.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
lnxscreenmode.h Reduce linux_fix.h usage in project 2024-08-20 23:08:10 +03:00
Macros.h Move _stat macro to linux_fix.h 2024-05-24 08:53:03 -04:00
manage_external.h Fix spello "seperate.." 2024-09-03 13:26:51 +02:00
manage.h Reduce linux_fix.h usage in project 2024-08-20 23:08:10 +03:00
megacell.h Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
module.h MODULE: rewrite mod_LoadModule() to use std::fs::path 2024-08-20 23:09:27 +03:00
networking.h Reduce linux_fix.h usage in project 2024-08-20 23:08:10 +03:00
object_external_struct.h Fix spello "seperate.." 2024-09-03 13:26:51 +02:00
polymodel_external.h Fix spello "it's" 2024-09-03 13:26:51 +02:00
psclass.h Reduce linux_fix.h usage in project 2024-08-20 23:08:10 +03:00
pstypes.h Reduce linux_fix.h usage in project 2024-08-20 23:08:10 +03:00
rend_opengl.h [Cleanup] Removed function declarations that are not implemented. 2024-08-20 20:03:02 +02:00
renderer.h Minor cleanups to HardwareOpenGL.cpp 2024-08-21 15:29:05 +03:00
robotfirestruct_external.h Isolate model submodule 2024-07-28 16:50:42 +03:00
robotfirestruct.h Isolate model submodule 2024-07-28 16:50:42 +03:00
textaux.h Fix spello "it's" 2024-09-03 13:26:51 +02:00
vecmat_external.h Fix spello "seperate.." 2024-09-03 13:26:51 +02:00
vecmat.h Fix spello "seperate.." 2024-09-03 13:26:51 +02:00