Skip to content

Commit

Permalink
New plain-color layers: fix alpha premultiplication flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerhelland committed Feb 17, 2017
1 parent d7e153a commit a037bdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Forms/Layer_Add_RasterLayer.frm
Expand Up @@ -222,4 +222,3 @@ Private Sub Form_Load()
ApplyThemeAndTranslations Me

End Sub

3 changes: 3 additions & 0 deletions Modules/VBP_LayerHandler.bas
Expand Up @@ -105,6 +105,9 @@ Public Sub AddNewLayer(ByVal dLayerIndex As Long, ByVal dLayerType As LAYER_TYPE

End If

'Layers always start with premultiplied alpha
tmpDIB.SetInitialAlphaPremultiplicationState True

'Set the layer name
If (Len(Trim$(dLayerName)) = 0) Then

Expand Down

0 comments on commit a037bdd

Please sign in to comment.