mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:09:16 +02:00
+ Added SetRGBPalette
+ Added GetRGBPalette
This commit is contained in:
parent
4364284281
commit
bd452e05a9
@ -226,6 +226,22 @@
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if assigned(modeinfo^.SetRGBPalette) then
|
||||||
|
SetRGBPalette := modeinfo^.SetRGBPalette
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
_Graphresult := grInvalidMode;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
if assigned(modeinfo^.GetRGBPalette) then
|
||||||
|
GetRGBPalette := modeinfo^.GetRGBPalette
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
_Graphresult := grInvalidMode;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
{ optional hooks. }
|
{ optional hooks. }
|
||||||
if assigned(modeinfo^.ClearViewPort) then
|
if assigned(modeinfo^.ClearViewPort) then
|
||||||
ClearViewPort := modeinfo^.ClearViewPort;
|
ClearViewPort := modeinfo^.ClearViewPort;
|
||||||
@ -260,6 +276,7 @@
|
|||||||
MaxX := modeinfo^.MaxX;
|
MaxX := modeinfo^.MaxX;
|
||||||
MaxY := modeinfo^.MaxY;
|
MaxY := modeinfo^.MaxY;
|
||||||
MaxColor := modeinfo^.MaxColor;
|
MaxColor := modeinfo^.MaxColor;
|
||||||
|
PaletteSize := modeinfo^.PaletteSize;
|
||||||
{ now actually initialize the video mode...}
|
{ now actually initialize the video mode...}
|
||||||
{ check first if the routine exists }
|
{ check first if the routine exists }
|
||||||
if not assigned(modeinfo^.InitMode) then
|
if not assigned(modeinfo^.InitMode) then
|
||||||
|
Loading…
Reference in New Issue
Block a user