[layers] Limited to 32 layers. (previously there was no limit and the 16-bit depth buffer wrapped). Fixed a display bug after picture transforms or layers add/del.

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1075 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-10-14 00:13:49 +00:00
parent 2dcc1cf8bd
commit abb6204757
7 changed files with 26 additions and 19 deletions

View File

@@ -481,10 +481,10 @@ void Layer_activate(short layer, short side)
// Right-click on current layer
if (Main_current_layer == layer)
{
if (Main_layers_visible == (1<<layer))
if (Main_layers_visible == (dword)(1<<layer))
{
// Set all layers visible
Main_layers_visible = 0xFFFF;
Main_layers_visible = 0xFFFFFFFF;
}
else
{