dxx-rebirth/common/2d
Kp 4d6affd74d Fix SDL-only briefing crash
Trim the bitmap's current width and height to be not more than its
parent.  Otherwise, an automatic screen resize, such as triggered when
playing the robot briefings in Descent 2, will give the window a new
smaller bm_data, but continue to use the old dimensions.  This then
causes load_briefing_screen -> gr_bitmap_scale_to -> scale_line to write
off the end of the smaller bm_data, causing memory corruption and
eventually a crash.
2021-11-01 03:37:20 +00:00
..
2dsline.cpp Use enum class for gr fade_level 2021-09-19 10:53:48 +00:00
bitblt.cpp Assign weakly-typed symbolic names to ogl_ubitmapm_cs special cases 2021-11-01 03:37:18 +00:00
bitmap.cpp Fix SDL-only briefing crash 2021-11-01 03:37:20 +00:00
bitmap.h Add color_palette_index type alias, to note palette-related uint8_t 2020-07-16 02:31:04 +00:00
box.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
canvas.cpp Use enum class for gr fade_level 2021-09-19 10:53:48 +00:00
circle.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
clip.h Expand EXCHG 2015-04-02 02:36:54 +00:00
disc.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
gpixel.cpp Use enum class bm_mode for grs_bitmap::type 2021-09-12 16:20:52 +00:00
line.cpp Use enum class bm_mode for grs_bitmap::type 2021-09-12 16:20:52 +00:00
pixel.cpp Use enum class bm_mode for grs_bitmap::type 2021-09-12 16:20:52 +00:00
rect.cpp optimize include files (include what you use) 2021-02-06 21:38:50 +01:00
rle.cpp Factor out common logic in rle conditionals 2021-09-04 12:17:14 +00:00
scalec.cpp Switch decode_row from xrange to span to better express its operation 2021-06-28 03:37:51 +00:00