mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-13 01:41:59 -04:00
boat in exploration is drawn by compositor
This commit is contained in:
parent
232dae6708
commit
05c1f952c4
12 changed files with 323 additions and 72 deletions
|
@ -13,6 +13,7 @@ char visible=0;
|
|||
MS_EVENT ms_last_event;
|
||||
integer h_x,h_y=0;
|
||||
|
||||
static const void *cur_hw_mouse = NULL;
|
||||
|
||||
void ukaz_mysku()
|
||||
{
|
||||
|
@ -23,7 +24,11 @@ void ukaz_mysku()
|
|||
#ifdef FORCE_SOFTWARE_CURSOR
|
||||
show_ms_cursor(ms_last_event.x-h_x,ms_last_event.y-h_y);
|
||||
#else
|
||||
game_display_show_mouse((const word *)get_registered_ms_cursor(),h_x, h_y);
|
||||
const void *reg = (const word *)get_registered_ms_cursor();
|
||||
if (reg != cur_hw_mouse) {
|
||||
cur_hw_mouse = reg;
|
||||
game_display_show_mouse(reg,h_x, h_y);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -126,6 +126,7 @@ int load_pcx(const char *pcx,int32_t fsize,int conv_type,char **buffer, ... )
|
|||
switch (conv_type)
|
||||
{
|
||||
case A_8BIT: *buffer=(char *)getmem(sz = xsize*ysize+512+16);break;
|
||||
case A_16BIT_ZERO_TRANSP:conv_type = A_16BIT; paleta2[0] = 0x8000;CASE_FALLTHROUGH;
|
||||
case A_16BIT: *buffer=(char *)getmem(sz = xsize*ysize*2+16);break;
|
||||
case A_FADE_PAL: *buffer=(char *)getmem(sz = xsize*ysize+SHADE_PAL+16);break;
|
||||
case A_8BIT_NOPAL: *buffer=(char *)getmem(sz = xsize*ysize+16);break;
|
||||
|
|
|
@ -7,6 +7,7 @@ extern "C" {
|
|||
|
||||
#define A_8BIT 8
|
||||
#define A_16BIT 16
|
||||
#define A_16BIT_ZERO_TRANSP (1024+16)
|
||||
#define A_FADE_PAL (256+8)
|
||||
#define A_8BIT_NOPAL (512+8)
|
||||
#define A_NORMAL_PAL (768+8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue