Skip to content

Commit

Permalink
FIX: compilation error due to last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
qtxie committed May 8, 2020
1 parent 9a03dcf commit e46d34d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libRed/libRed.red
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ Red [

rgb: null
if format = RGB_BUFFER [rgb: src]
img/node: OS-image/make-image width height rgb null null
img/node: OS-image/make-image width height binary/load-in rgb width * height null null null

if format = RGBA_BUFFER [
stride: 0
Expand Down
9 changes: 4 additions & 5 deletions modules/view/backends/windows/draw.reds
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ OS-draw-brush-pattern: func [
/local
pat-image [red-image!]
bkg-alpha [byte!]
p-alpha [byte-ptr!]
p-alpha [red-binary! value]
p [byte-ptr!]
][
pat-image: either brush?
Expand All @@ -2239,14 +2239,13 @@ OS-draw-brush-pattern: func [
pat-image/head: 0
pat-image/size: size/y << 16 or size/x
bkg-alpha: as byte! 0
p-alpha: allocate pat-image/size
p: p-alpha
string/rs-make-at as cell! :p-alpha pat-image/size
p: binary/rs-head :p-alpha
loop pat-image/size [
p/value: as-byte 255
p: p + 1
]
pat-image/node: OS-image/make-image size/x size/y null p-alpha null
free p-alpha
pat-image/node: OS-image/make-image size/x size/y null :p-alpha null
do-draw null pat-image block no no no no
OS-draw-brush-bitmap ctx pat-image crop-1 crop-2 mode brush?
]
Expand Down

0 comments on commit e46d34d

Please sign in to comment.