X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Flib%2Fallegro4%2Fallegro.pas;h=d2483528bd2abc3372b576d0127ba2a350c787c1;hp=0560035d927097633e50020754300fea258a49ca;hb=9cdcaa197fc2ad55a382ba5c96273a94538922dc;hpb=23c3f9ee3fc3837cd1d0380496a2e1b0f87833d8 diff --git a/src/lib/allegro4/allegro.pas b/src/lib/allegro4/allegro.pas index 0560035..d248352 100644 --- a/src/lib/allegro4/allegro.pas +++ b/src/lib/allegro4/allegro.pas @@ -269,6 +269,7 @@ interface windowed: cint; end; + PRGB = ^RGB; RGB = record r, g, b, filler: cuchar; end; @@ -300,6 +301,7 @@ interface key_shifts: cint; LibraryLibAllegroVar; color_map: PCOLOR_MAP_T; LibraryLibAllegroVar; gfx_driver: PGFX_DRIVER_T; LibraryLibAllegroVar; + palette_color: array [0..255] of cint; LibraryLibAllegroVar; function get_desktop_resolution (width, height: Pcint): cint; LibraryLibAllegroImp; function get_gfx_mode_list (card: cint): PGFX_MODE_LIST; LibraryLibAllegroImp; @@ -386,6 +388,10 @@ interface procedure vsync; LibraryLibAllegroImp; function desktop_color_depth: cint; LibraryLibAllegroImp; + procedure select_palette (const p: PALETTE); LibraryLibAllegroImp; + procedure unselect_palette; LibraryLibAllegroImp; + procedure set_color (index: cint; const p: PRGB); LibraryLibAllegroImp; + (* MACRO *) function install_allegro (system_id: cint; errno_ptr: Pcint; atexit_ptr: AtExitFunction): cint; inline; function allegro_init: cint; inline;