瀏覽代碼

+ 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 17 年之前
父節點
當前提交
42871abdeb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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');
 procedure ReleasePen(cm : pColorMap location 'a0'; n : CARDINAL location 'd0');
 SysCall GfxBase 948;
 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;
 SysCall GfxBase 954;
 
 
 function GetBitMapAttr(bm : pBitMap location 'a0'; attrnum : CARDINAL location 'd1') : CARDINAL;
 function GetBitMapAttr(bm : pBitMap location 'a0'; attrnum : CARDINAL location 'd1') : CARDINAL;