mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 15:09:47 +00:00
TITANIC: Properly initialize data array in CSurfaceFader
This commit is contained in:
parent
c41845e6ae
commit
6a8ee95dba
@ -29,9 +29,9 @@ namespace Titanic {
|
||||
CSurfaceFader::CSurfaceFader() : CSurfaceFaderBase() {
|
||||
_dataP = new byte[_count];
|
||||
|
||||
for (int idx = 0; idx < _count; ++idx) {
|
||||
// TODO: Setup data bytes
|
||||
}
|
||||
for (int idx = 0; idx < _count; ++idx)
|
||||
_dataP[idx] = (byte)(pow((double)idx / (double)_count, 1.299999952316284)
|
||||
* (double)_count + 0.5);
|
||||
}
|
||||
|
||||
CSurfaceFader::~CSurfaceFader() {
|
||||
|
Loading…
Reference in New Issue
Block a user