Ver Fonte

+ ObtainPen()'s 2nd argument is actually a longint, not cardinal,
because -1 is a valid argument for this function there.
This bug is also in the original AmigaOS C SDK, which specifies
this argument as ULONG, and defines -1 as valid argument for it.

git-svn-id: trunk@11981 -

Károly Balogh há 17 anos atrás
pai
commit
42871abdeb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      rtl/morphos/graphics.pas

+ 1 - 1
rtl/morphos/graphics.pas

@@ -2631,7 +2631,7 @@ SysCall GfxBase 942;
 procedure ReleasePen(cm : pColorMap location 'a0'; n : CARDINAL location 'd0');
 SysCall GfxBase 948;
 
-function ObtainPen(cm : pColorMap location 'a0'; n : CARDINAL location 'd0'; r : CARDINAL location 'd1'; g : CARDINAL location 'd2'; b : CARDINAL location 'd3'; f : LongInt location 'd4') : CARDINAL;
+function ObtainPen(cm : pColorMap location 'a0'; n : longint location 'd0'; r : CARDINAL location 'd1'; g : CARDINAL location 'd2'; b : CARDINAL location 'd3'; f : LongInt location 'd4') : CARDINAL;
 SysCall GfxBase 954;
 
 function GetBitMapAttr(bm : pBitMap location 'a0'; attrnum : CARDINAL location 'd1') : CARDINAL;