Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refs #89 [Athlete Kings] Transparencies problem and shadow problem
  • Loading branch information
devmiyax committed Dec 28, 2015
1 parent 943a72b commit b016072
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yabause/src/vidogl.c
Expand Up @@ -2622,7 +2622,8 @@ static void Vdp2DrawMapPerLine(vdp2draw_struct *info, YglTexture *texture){
info->draww = (int)((float)vdp2width / info->coordincx);
info->drawh = (int)((float)vdp2height / info->coordincy);


int res_shift = 0;
if (vdp2height >= 440) res_shift = 1;


for (v = 0; v < info->drawh; v += info->lineinc){ // ToDo: info->coordincy
Expand All @@ -2648,7 +2649,7 @@ static void Vdp2DrawMapPerLine(vdp2draw_struct *info, YglTexture *texture){
if (info->coordincx < info->maxzoom) info->coordincx = info->maxzoom;
info->draww = (int)((float)vdp2width / info->coordincx);

regs = Vdp2RestoreRegs(v, Vdp2Lines);
regs = Vdp2RestoreRegs((v >> res_shift), Vdp2Lines);
if (regs) ReadVdp2ColorOffset(regs, info, info->linecheck_mask);

// determine which chara shoud be used.
Expand Down

0 comments on commit b016072

Please sign in to comment.