Skip to content

Commit 6743d6b

Browse files
committed
Create bitmaps using an alpha channel (#96)
As part of #90, calls to `(make-bitmap ...)` were replaced with `(make-object bitmap% ...)` but the two calls have different defaults for whether to create an alpha channel for the bitmap or not. The `(make-object bitmap% ...)` variant defaults to not having an alpha channel, so it needs to be explicitly specified.
1 parent c412600 commit 6743d6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plot-lib/plot/private/no-gui/plot2d.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
#:aspect-ratio [aspect-ratio (plot-aspect-ratio)]
105105
#:legend-anchor [legend-anchor (plot-legend-anchor)])
106106
(define bm : (Instance (Class #:implements Bitmap% #:implements Plot-Metrics<%>))
107-
(make-object (plot-metrics-mixin bitmap%) (λ () pm) width height))
107+
(make-object (plot-metrics-mixin bitmap%) (λ () pm) width height #f #t))
108108
(define dc : (Instance DC<%>) (make-object bitmap-dc% bm))
109109
(define pm : (Instance Plot-Metrics<%>)
110110
(plot/dc renderer-tree dc 0 0 width height

plot-lib/plot/private/no-gui/plot3d.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
#:aspect-ratio [aspect-ratio (plot-aspect-ratio)]
136136
#:legend-anchor [legend-anchor (plot-legend-anchor)])
137137
(define bm : (Instance (Class #:implements Bitmap% #:implements Plot-Metrics<%>))
138-
(make-object (plot-metrics-mixin (class bitmap% (super-new))) (λ () pm) width height))
138+
(make-object (plot-metrics-mixin (class bitmap% (super-new))) (λ () pm) width height #f #t))
139139
(define dc : (Instance DC<%>) (make-object bitmap-dc% bm))
140140
(define pm : (Instance Plot-Metrics<%>)
141141
(plot3d/dc renderer-tree dc 0 0 width height

0 commit comments

Comments
 (0)