Пример #1
0
        private void UpdateOverlay()
        {
            _window.PlaceAbove(_gameMemory.Process.WindowHandle);

            if (Config.ScalingFactor != 1f)
            {
                _device.Transform = new SharpDX.Mathematics.Interop.RawMatrix3x2(1f, 0f, 0f, 1f, 0f, 0f);
            }

            _graphics.BeginScene();
            _graphics.ClearScene();

            if (Config.ScalingFactor != 1f)
            {
                _device.Transform = new SharpDX.Mathematics.Interop.RawMatrix3x2(Config.ScalingFactor, 0f, 0f, Config.ScalingFactor, 0f, 0f);
            }
        }