Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ internal Present Render(MapRectangle mapRect, System.Drawing.Size size, bool use
System.Drawing.Imaging.PixelFormat.Format32bppArgb);
try
{
IntPtr buffer = new IntPtr(bitmapData.Scan0.ToInt32() +
IntPtr buffer = new IntPtr(bitmapData.Scan0.ToInt64() +
int32Rect.Y * bitmapData.Stride + int32Rect.X * 4);
bitmapSource.CopyPixels(
new Int32Rect(0, 0, bitmapSource.PixelWidth, bitmapSource.PixelHeight),
Expand Down