OSDN Git Service

Merge branch 'master' of https://github.com/tokumeiwokiboushimasu/common_source_proje... tokumeiwokiboushimasu-master
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 22 Sep 2019 12:56:23 +0000 (21:56 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 22 Sep 2019 12:56:23 +0000 (21:56 +0900)
[VM][FMTOWNS][CRTC] Fix typo.Thanks to tokumeiwokibousimasu-san!

1  2 
source/src/vm/fmtowns/towns_crtc.cpp

@@@ -512,11 -355,12 +512,11 @@@ uint32_t TOWNS_CRTC::read_io8(uint32_t 
        return 0xff;
  }
  
- bool TOWND_CRTC::render_32768(scrntype_t* dst, scrntype_t *mask, int y, int width, int layer, bool do_alpha)
 -void TOWNS_CRTC::render_32768(scrntype_t* dst, scrntype_t *mask, uint8_t* src, int y, int width, int layer)
++bool TOWNS_CRTC::render_32768(scrntype_t* dst, scrntype_t *mask, int y, int width, int layer, bool do_alpha)
  {
 -      if(dst == NULL) return;
 -      if(mask == NULL) return;
 -      if(src == NULL) return;
 +      if(dst == NULL) return false;
        
 +      int trans = display_linebuf & 3;
        int magx = linebuffers[trans][y].mag[layer];
        int pwidth = linebuffers[trans][y].pixels[layer];
        int num = linebuffers[trans][y].num[layer];
                        }
                }
        }
 +      return true;
  }
  
- bool TOWND_CRTC::render_16(scrntype_t* dst, scrntype_t *mask, scrntype_t* pal, int y, int width, int layer, bool do_alpha)
 -void TOWNS_CRTC::render_16(scrntype_t* dst, scrntype_t *mask, uint8_t* src, scrntype_t* pal, int y, int width, int layer)
++bool TOWNS_CRTC::render_16(scrntype_t* dst, scrntype_t *mask, scrntype_t* pal, int y, int width, int layer, bool do_alpha)
  {
        if(dst == NULL) return;
 -      if(mask == NULL) return;
 -      if(src == NULL) return;
 -      if(pal == NULL) return;
        
 +      int trans = display_linebuf & 3;
        int magx = linebuffers[trans][y].mag[layer];
        int pwidth = linebuffers[trans][y].pixels[layer];
        int num = linebuffers[trans][y].num[layer];