[CONFIGURATION]

* NEW: Force symbolic link creation.

[GB.WEB]
* BUG: Fix Session.Keys for SQLite sessions.

[GB.IMAGE]
* BUG: Image.Desaturate() now works correctly on image alpha channel.


git-svn-id: svn://localhost/gambas/trunk@7847 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-08-18 18:59:19 +00:00
parent 8ffbdde703
commit c019b07f40
4 changed files with 15 additions and 3 deletions

View file

@ -1,3 +1,6 @@
Align!?
Arrange!?
Line!?
Report!
ReportBorder!
ReportBrush!

View file

@ -23,6 +23,7 @@ End
Public Sub _new(sId As String)
Component.Load("gb.db")
$sPath = GetPath(sId) '"/tmp/gambas." & System.User.Id &/ "session" &/ $sId
End
@ -294,7 +295,7 @@ Public Sub _put(Value As Variant, Key As String)
$cDelete[Key] = True
$cValues.Remove(Key)
Else
$cDelete.Remove(Key)
If $cDelete.Count Then $cDelete.Remove(Key)
$cValues[Key] = Value
Endif
@ -337,6 +338,14 @@ Public Sub GetKeys() As String[]
aKey.Add(rValue!sKey)
Next
For Each $cDelete
Try aKey.Remove(aKey.Find($cDelete.Key))
Next
For Each $cValues
If Not aKey.Exist($cValues.Key) Then aKey.Add($cValues.Key)
Next
Return aKey
End

View file

@ -53,7 +53,7 @@ install-exec-local:
rm -rf .gambas; \
echo "Installing $$p..."; \
$(INSTALL) $$p.gambas $(DESTDIR)$(bindir); \
ln -s $$p.gambas $(DESTDIR)$(bindir)/$$p || true; \
$(LN_S) -f $$p.gambas $(DESTDIR)$(bindir)/$$p || true; \
else \
echo "|| Unable to compile $$p" >> ../../../warnings.log; \
fi \

View file

@ -793,7 +793,7 @@ void IMAGE_make_gray(GB_IMG *img)
while (p != pm)
{
col = BGRA_from_format(*p, format);
g = (((RED(col) + BLUE(col)) >> 1) + GREEN(col)) >> 1;
g = GRAY(col);
*p++ = BGRA_to_format(RGBA(g, g, g, ALPHA(col)), format);
}