fix a bug in the way bitmap scaling was being handled
original commit: c126a8aaaca5a81f57e2306a5e1d155362777491
This commit is contained in:
parent
0295828ffd
commit
6469b0b2b3
|
@ -943,7 +943,9 @@ has been moved out).
|
|||
(define bw (send bitmap-obj get-width))
|
||||
(define bh (send bitmap-obj get-height))
|
||||
|
||||
(send dc translate (- (/ bw 2)) (- (/ bh 2)))
|
||||
(send dc translate
|
||||
(* (ibitmap-x-scale bitmap) (- (/ bw 2)))
|
||||
(* (ibitmap-y-scale bitmap) (- (/ bh 2))))
|
||||
(send dc set-scale (ibitmap-x-scale bitmap) (ibitmap-y-scale bitmap))
|
||||
|
||||
(send dc draw-bitmap bitmap-obj 0 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user