mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 10:36:44 +00:00
Bugfixes
This commit is contained in:
parent
4880fea8e3
commit
2f7c4fb032
3 changed files with 8 additions and 3 deletions
|
@ -150,6 +150,8 @@ public class Capy64 : Game, IGame
|
|||
break;
|
||||
}
|
||||
|
||||
EngineMode = mode;
|
||||
|
||||
UpdateSize(true);
|
||||
}
|
||||
|
||||
|
@ -179,6 +181,11 @@ public class Capy64 : Game, IGame
|
|||
|
||||
private void OnWindowSizeChange(object sender, EventArgs e)
|
||||
{
|
||||
if (EngineMode == EngineMode.Classic) {
|
||||
UpdateSize(true);
|
||||
return;
|
||||
}
|
||||
|
||||
var bounds = Window.ClientBounds;
|
||||
|
||||
Width = (int)(bounds.Width / Scale);
|
||||
|
|
|
@ -157,8 +157,6 @@ public class GPULib : IComponent
|
|||
|
||||
public static void GetColor(uint c, out byte r, out byte g, out byte b)
|
||||
{
|
||||
/*if (_game.EngineMode == EngineMode.Classic)
|
||||
c = ColorPalette.GetColor(c);*/
|
||||
Utils.UnpackRGB(c, out r, out g, out b);
|
||||
}
|
||||
|
||||
|
|
|
@ -200,7 +200,7 @@ public class FileHandle : IComponent
|
|||
return 2;
|
||||
}
|
||||
|
||||
return G_Read(L, stream, 1);
|
||||
return G_Read(L, stream, 2);
|
||||
}
|
||||
|
||||
private static int G_Read(Lua L, Stream f, int first)
|
||||
|
|
Loading…
Reference in a new issue