Figured out the mystery values in RestoreSurfaces
They're ASCII characters.
This commit is contained in:
parent
46ca9b4d4a
commit
43c0b670ab
1 changed files with 3 additions and 3 deletions
|
@ -766,14 +766,14 @@ int RestoreSurfaces(void)
|
|||
{
|
||||
++surfaces_regenerated;
|
||||
frontbuffer->Restore();
|
||||
out(0x66);
|
||||
out('f'); // 'f' for 'frontbuffer'
|
||||
}
|
||||
|
||||
if (backbuffer->IsLost() == DDERR_SURFACELOST)
|
||||
{
|
||||
++surfaces_regenerated;
|
||||
backbuffer->Restore();
|
||||
out(0x62);
|
||||
out('b'); // 'b' for 'backbuffer'
|
||||
}
|
||||
|
||||
for (s = 0; s < SURFACE_ID_MAX; ++s)
|
||||
|
@ -784,7 +784,7 @@ int RestoreSurfaces(void)
|
|||
{
|
||||
++surfaces_regenerated;
|
||||
surf[s]->Restore();
|
||||
out(0x30 + s);
|
||||
out('0' + s); // The number of the surface lost
|
||||
|
||||
if (!surface_metadata[s].bSystem)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue