Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs
- ===================================================================
- --- BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs (revision 9267)
- +++ BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs (working copy)
- @@ -359,17 +359,9 @@
- ImageCache.Add(path, img);
- }
- - var pts = new Point[]
- - {
- - new Point(dest_x, dest_y ),
- - new Point(dest_x + (dest_width ?? img.Width), dest_y),
- - new Point(dest_x + (dest_width ?? source_width), dest_y + (dest_height ?? source_height))
- - };
- + var dest_rect = new Rectangle(dest_x, dest_y, (dest_width ?? source_width), (dest_height ?? source_height));
- - var rect = new Rectangle(source_x, source_y, source_width, source_height);
- -
- -
- - g.DrawImage(img, pts, rect, GraphicsUnit.Pixel);
- + g.DrawImage(img, dest_rect, source_x, source_y, source_width, source_height, GraphicsUnit.Pixel);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment