diff --git a/ClassicalSharp/Map/MapDat.cs b/ClassicalSharp/Map/MapDat.cs index 6864929ee..5090225d0 100644 --- a/ClassicalSharp/Map/MapDat.cs +++ b/ClassicalSharp/Map/MapDat.cs @@ -64,11 +64,11 @@ namespace ClassicalSharp { byte typeCode = reader.ReadByte(); if( typeCode != TC_OBJECT ) ParseError( TC_OBJECT, typeCode ); ClassDescription desc = ReadClassDescription(); - ReadClassData( desc.Fields, desc.Flags ); + ReadClassData( desc.Fields ); return desc; } - void ReadClassData( FieldDescription[] fields, byte flags ) { + void ReadClassData( FieldDescription[] fields ) { for( int i = 0; i < fields.Length; i++ ) { switch( fields[i].Type ) { case FieldType.Byte: @@ -158,9 +158,7 @@ namespace ClassicalSharp { struct ClassDescription { public string ClassName; - public byte Flags; public FieldDescription[] Fields; - public object Value; } struct FieldDescription { diff --git a/ClassicalSharp/Utils/Camera.cs b/ClassicalSharp/Utils/Camera.cs index e495cf403..200ad92ca 100644 --- a/ClassicalSharp/Utils/Camera.cs +++ b/ClassicalSharp/Utils/Camera.cs @@ -57,7 +57,8 @@ namespace ClassicalSharp { int cenX = bounds.Left + bounds.Width / 2; int cenY = bounds.Top + bounds.Height / 2; game.DesktopCursorPos = new Point( cenX, cenY ); - previous = new Point( cenX, cenY ); + // Fixes issues with large DPI displays on Windows >= 8.0. + previous = game.DesktopCursorPos; } public override void RegrabMouse() { diff --git a/readme.md b/readme.md index 2e5551c59..0a073e1c0 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ You can get the latest binaries [here](https://github.com/UnknownShadow200/Class #### What ClassicalSharp is * Works with both minecraft.net and classicube.net accounts. * Lightweight, minimal memory usage compared to the standard client. -* Works with effectively all graphics cards that support OpenGL. +* Works with effectively all graphics cards that support OpenGL or Direct3D 9. * Provides single-player support. (only flatgrass generator, but can load .dat and .fcm maps) It does not: