Skip to content

Commit

Permalink
pass coords in the right location
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Jul 10, 2010
1 parent 01dd410 commit 0f46437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/win32/screenshot/bitmap_maker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def capture_area(hwnd, x1, y1, x2, y2, &proc)
hmemDC = create_compatible_dc(hScreenDC)
hmemBM = create_compatible_bitmap(hScreenDC, w, h)
select_object(hmemDC, hmemBM)
bit_blt(hmemDC, x1, y1, w, h, hScreenDC, 0, 0, SRCCOPY)
bit_blt(hmemDC, 0, 0, w, h, hScreenDC, x1, y1, SRCCOPY)
bitmap_size = w * h * 3 + w % 4 * h
lpvpxldata = FFI::MemoryPointer.new(bitmap_size)

Expand Down

0 comments on commit 0f46437

Please sign in to comment.