diff --git a/XSharpLevelEditor/Editor/FrmLevelEditor.cs b/XSharpLevelEditor/Editor/FrmLevelEditor.cs index 85a3440..bf133dd 100644 --- a/XSharpLevelEditor/Editor/FrmLevelEditor.cs +++ b/XSharpLevelEditor/Editor/FrmLevelEditor.cs @@ -32,19 +32,19 @@ public TileRender(Control control) public void Render() { - var device = BaseEngine.Engine.Device; + var device = DX9Engine.Engine.Device; device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.Black, 1.0f, 0); device.BeginScene(); var tilemap = BaseEngine.Engine.ForegroundTilemap; - int tilemapWidth = tilemap.GetLevelDescription(0).Width; - int tilemapHeight = tilemap.GetLevelDescription(0).Height; + int tilemapWidth = tilemap.Width; + int tilemapHeight = tilemap.Height; var palette = BaseEngine.Engine.ForegroundPalette; BaseEngine.Engine.DrawTexture(tilemap, palette); device.EndScene(); - device.Present(new Rectangle(0, 0, tilemapWidth, tilemapHeight), new Rectangle(0, 0, control.ClientSize.Width, control.ClientSize.Height), control.Handle); + device.Present(new SharpDX.Rectangle(0, 0, tilemapWidth, tilemapHeight), new SharpDX.Rectangle(0, 0, control.ClientSize.Width, control.ClientSize.Height), control.Handle); } } diff --git a/XSharpLevelEditor/Engine/EditorEngine.cs b/XSharpLevelEditor/Engine/EditorEngine.cs index 78245ed..9923dd6 100644 --- a/XSharpLevelEditor/Engine/EditorEngine.cs +++ b/XSharpLevelEditor/Engine/EditorEngine.cs @@ -1,8 +1,8 @@ namespace XSharp.Engine; -public class EditorEngine : BaseEngine +public class EditorEngine : DX9Engine { - new public static EditorEngine Engine => (EditorEngine) BaseEngine.Engine; + new public static EditorEngine Engine => (EditorEngine) DX9Engine.Engine; public EditorEngine() {