Paweł Kołodziejski
06902574b4
GRIM: Janitorial
2022-06-08 01:12:00 +02:00
Paweł Kołodziejski
20cb0ae228
ALL: Cleanup ResidualVM -> ScummVM
2021-12-26 21:19:38 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Paweł Kołodziejski
af37825be3
ENGINES: Replace PixelBuffer with Surface
2021-11-27 20:14:44 +01:00
Cameron Cawley
757a819da9
GRIM: Remove unneeded use of Graphics::createPixelFormat
2021-06-24 11:55:54 +02:00
Paweł Kołodziejski
15f1f86bfe
GRIM: Remove end lines from warning() messages
2020-11-12 10:51:13 +01:00
Bastien Bouclet
23339184ce
GRIM: Clean up float data loading
2018-04-14 11:49:35 +02:00
Vincent Pelletier
a6eb5d4668
GRIM: Use copyBuffer in BitmapData::convertToColorFormat
2017-05-15 10:31:25 +00:00
Vincent Pelletier
84f83fe6ea
ALL: Rename get_float to READ_LE_FLOAT
...
For consistency with other functions/macros from common/endian.h .
2017-05-12 13:57:16 +00:00
Vincent Pelletier
7c1a15c6e8
TINYGL: Expect colorKey in the same pixel format as surface.
...
So caller does not have to depend on the pixel format used internally to
BlitImage.
Update callers which do request for color keying (GRIM/EMI only).
Also, remove a special-casing of transparent color when converting image
format which sets a color in a packed format independent from actual
destination format.
Also, in GfxTinyGL::createTextObject, prefer changing invisible colorKey
value than actually-visible color.
2016-07-21 16:17:32 +02:00
Christian Krause
b186c21f85
EMI: Fix wrap around of Layers/Frames
...
This patch makes sure, that Layer::_frame is smaller than numLayers
of the bitmap in order to prevent out-of-bounds access to
BitmapData::_layers.
2015-05-16 10:39:08 +02:00
Christian Krause
e77b5f46b1
GRAPHICS: Allow tiles with just one sub-image
...
Remove an error() call in BitmapData::loadTile when the number
of sub-images is smaller than 5. The code can handle such
bitmaps/tiles already.
2015-05-05 23:23:41 +02:00
Christian Krause
789da551fc
GRIM/EMI: Add nullptr checks to avoid segfaults on cleanup
2015-01-13 21:12:23 +01:00
Christian Krause
ad2ce4a87e
EMI: Fix memleaks caused by specialtyTextures
...
- delete screenshot after texture is created
- free _data[] entries in BitmapData::freeData()
- destroy _specialtyTextures[] entries in
graphic driver's destructors
2014-12-31 15:47:36 +01:00
Joseph Jezak
91e6daf6ba
EMI: Fix TIL on Big Endian machines.
2014-07-29 13:54:28 -04:00
Joni Vähämäki
6fa4b66aa7
EMI: Initialize _texc, _verts and _layers in the constructor of BitmapData.
2014-06-22 17:49:35 +03:00
Joel Teichroeb
a6a2cb71d4
EMI: Free more memory properly
2014-06-20 11:00:44 -07:00
Joel Teichroeb
0f3da43694
GRIM: Change NULL to nullptr.
2014-05-30 17:43:08 -07:00
Pawel Kolodziejski
8759900b6a
ALL: synced with ScummVM
2014-04-05 18:18:42 +02:00
Christian Krause
07e22b6734
GRIM/EMI: Fix compile warning
...
- the pixel data retrieved via getPixels() is stored as non-const
data in pixebuffer, so the original object can't be const
2014-02-15 18:40:35 +01:00
Joel Teichroeb
4af2b19577
GRIM: Initialize _userData in BitmapData and Mesh
2014-01-15 09:16:02 -08:00
Einar Johan Trøan Sømåen
acf7d8ef0c
GRIM: Initialize BitmapData's _fname in initializer-list
2014-01-07 12:33:41 +01:00
Joel Teichroeb
5fe98d602e
EMI: Properly handle endianness of TIL backgrounds
2013-12-06 19:21:39 -08:00
Joel Teichroeb
c0cb2f1f9c
GRIM: Use a consitent style for constructor initializers
2013-10-26 13:57:55 -07:00
Pawel Kolodziejski
790db038c0
ALL: sync with scummvm
2013-10-13 11:30:34 +02:00
Einar Johan Trøan Sømåen
bc2edd831a
Revert "EMI: Remove last ifdef ENABLE_MONKEY4 checks"
...
This reverts commit 930ccad494 .
2013-07-30 21:52:08 +02:00
Dries Harnie
930ccad494
EMI: Remove last ifdef ENABLE_MONKEY4 checks
2013-07-10 17:05:40 +02:00
Einar Johan Trøan Sømåen
fe3883cecd
GRIM: Reformat code to be closer to convention.
2013-07-09 21:12:55 +02:00
Dries Harnie
ab2a2cc8cb
GRAPHICS: Use proper TGA decoder
2013-07-03 20:57:03 +02:00
Dries Harnie
a723b0e3f5
EMI: Draw background layers at intervals
...
Previously, we split the background layers into everything
before SO 15 and after, and drew like that. However, this caused
the pink ship in shi.setb to not be drawn.
This patch draws the layers of the background at intervals of ten.
So if a set has six layers, layer 5 is the background and 4,3,2,1,0
are rendered at sortorder 40,30,20,10,0.
2013-06-29 14:41:17 +02:00
Dries Harnie
71c2e44983
EMI: Read binary data in little-endian format
2013-06-04 21:21:26 +02:00
Joel Teichroeb
b1967abd7d
GRIM: Only initialize _refCount once in BitmapData
...
Fixes #728
2013-04-26 16:40:53 -07:00
Einar Johan Trøan Sømåen
44aadeb0c7
GRIM: Initialize _currImage in Bitmap's default-constructor.
2013-04-21 14:51:38 +02:00
Einar Johan Trøan Sømåen
b89136e84d
GRIM: Initialize more members in BitmapData.
2013-04-21 14:49:55 +02:00
Paweł Kołodziejski
175620b62a
ALL: change license headers from LGPL to GPL, and few updates
2012-12-19 23:15:43 +01:00
Dries Harnie
b239104e7b
EMI: Rename Offset to Layer
2012-11-26 02:08:58 +01:00
Dries Harnie
bde37f96a8
EMI: Over-draw some actors in Set::drawForeground
...
EMI draws portions of the background over actors
with sortOrder >= 15.
2012-11-26 02:08:58 +01:00
Joel Teichroeb
e27a6ad833
EMI: Load TIL files correctly
2012-11-18 09:17:21 -08:00
Einar Johan Trøan Sømåen
4baa60ea84
EMI: Fix formatting
2012-10-22 19:19:50 +02:00
Joel Teichroeb
115e3232b8
GRIM: Remove extra semicolons
2012-05-05 22:59:51 -07:00
Joel Teichroeb
77f4978a42
GRIM: Remove unneeded forbidden symbol exceptions
2012-05-05 22:19:45 -07:00
Paweł Kołodziejski
2a9b36cd5a
Merge pull request #598 from YakBizzarro/res
...
GRIM: Little modifications in ResourceLoader
2012-04-12 22:29:27 -07:00
Paweł Kołodziejski
640889b805
ALL: disabled compiler warnings
2012-04-12 02:54:10 +02:00
Andrea Corna
ee71476748
GRIM: Remove ResourceLoader::getFileExist and use SearchMan::hasFile instead
2012-04-11 14:43:53 +02:00
Joel Teichroeb
94aeca9663
GRIM: Remove tag from the pool template
2012-04-05 15:20:30 -07:00
Joel Teichroeb
0dcfaf8fb1
GRIM: Do not include unneeded headers
2012-04-04 16:11:05 -07:00
Joel Teichroeb
44efbccff4
GRIM: Fix casting away const
2012-04-03 16:58:04 -07:00
Joel Teichroeb
7afd163b6e
GRIM: Fix a memory leak with tinygl bitmaps. Fixes #580
2012-03-31 15:03:56 -07:00
Joel Teichroeb
63938ba499
GRIM: Clean up unneeded includes and fix some trailing whitespace
2012-03-26 20:12:00 -07:00
Giulio Camuffo
b4bbbb0b44
GRIM: Missed few save changes.
2012-03-11 19:03:33 +01:00