Removed unusable parameter.
This commit is contained in:
@@ -14,7 +14,7 @@ type
|
|||||||
procedure Tim2Png(TIM: PTIM; CLUT_NUM: Integer; Image: PDrawSurf; TranspMode: Byte);
|
procedure Tim2Png(TIM: PTIM; CLUT_NUM: Integer; Image: PDrawSurf; TranspMode: Byte);
|
||||||
procedure Png2Tim(Image: PDrawSurf; Dest: PTIM);
|
procedure Png2Tim(Image: PDrawSurf; Dest: PTIM);
|
||||||
procedure DrawClutCell(TIM: PTIM; CLUT_NUM: Integer; Grid: PDrawGrid; X, Y: Integer);
|
procedure DrawClutCell(TIM: PTIM; CLUT_NUM: Integer; Grid: PDrawGrid; X, Y: Integer);
|
||||||
procedure SetupCLUT(TIM: PTIM; CLUT_NUM: Integer; Grid: PDrawGrid);
|
procedure SetupCLUT(TIM: PTIM; Grid: PDrawGrid);
|
||||||
procedure ClearCanvas(ACanvas: PCanvas; Rect: TRect);
|
procedure ClearCanvas(ACanvas: PCanvas; Rect: TRect);
|
||||||
procedure ClearGrid(Grid: PDrawGrid);
|
procedure ClearGrid(Grid: PDrawGrid);
|
||||||
|
|
||||||
@@ -365,9 +365,9 @@ begin
|
|||||||
Dispose(CLUT_COLOR);
|
Dispose(CLUT_COLOR);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure SetupCLUT(TIM: PTIM; CLUT_NUM: Integer; Grid: PDrawGrid);
|
procedure SetupCLUT(TIM: PTIM; Grid: PDrawGrid);
|
||||||
var
|
var
|
||||||
X, Y, ROWS, COLS, COLORS: Integer;
|
ROWS, COLS, COLORS: Integer;
|
||||||
begin
|
begin
|
||||||
COLORS := GetTimColorsCount(TIM);
|
COLORS := GetTimColorsCount(TIM);
|
||||||
COLS := Min(COLORS, 32);
|
COLS := Min(COLORS, 32);
|
||||||
|
|||||||
@@ -1164,7 +1164,7 @@ begin
|
|||||||
grdClut.Enabled := TIMHasCLUT(TIM);
|
grdClut.Enabled := TIMHasCLUT(TIM);
|
||||||
|
|
||||||
if TIMHasCLUT(TIM) then
|
if TIMHasCLUT(TIM) then
|
||||||
SetupCLUT(TIM, cbbCLUT.ItemIndex, @grdClut)
|
SetupCLUT(TIM, @grdClut)
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
grdClut.ColCount := 1;
|
grdClut.ColCount := 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user