denilsonsa

Untitled

Mar 23rd, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.97 KB | None | 0 0
  1. Index: BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs
  2. ===================================================================
  3. --- BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs (revision 9267)
  4. +++ BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs (working copy)
  5. @@ -359,17 +359,9 @@
  6.                     ImageCache.Add(path, img);
  7.                 }
  8.  
  9. -               var pts = new Point[]
  10. -               {
  11. -                   new Point(dest_x, dest_y ),
  12. -                   new Point(dest_x + (dest_width ?? img.Width), dest_y),
  13. -                   new Point(dest_x + (dest_width ?? source_width), dest_y + (dest_height ?? source_height))
  14. -               };
  15. +               var dest_rect = new Rectangle(dest_x, dest_y, (dest_width ?? source_width), (dest_height ?? source_height));
  16.  
  17. -               var rect = new Rectangle(source_x, source_y, source_width, source_height);
  18. -
  19. -
  20. -               g.DrawImage(img, pts, rect, GraphicsUnit.Pixel);
  21. +               g.DrawImage(img, dest_rect, source_x, source_y, source_width, source_height, GraphicsUnit.Pixel);
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment