Previous 15994 Revisions Next

r13786 Friday 30th December, 2011 at 16:06:09 UTC by Wilbert Pol
smsvdp.c: Fixed setting of Y1 bitmap for sprites. (nw)
[src/mess/video]smsvdp.c

src/mess/video/smsvdp.c
r13785r13786
911911
912912            if (!(priority_selected[pixel_plot_x] & PRIORITY_BIT))
913913            {
914               priority_selected[pixel_plot_x] = line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
915               priority_selected[pixel_plot_x + 1] = line_buffer[pixel_plot_x + 1] = m_current_palette[pen_selected];
914               line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
915               priority_selected[pixel_plot_x] = pen_selected;
916               line_buffer[pixel_plot_x + 1] = m_current_palette[pen_selected];
917               priority_selected[pixel_plot_x + 1] = pen_selected;
916918            }
917919            else
918920            {
919921               if (priority_selected[pixel_plot_x] == PRIORITY_BIT)
920922               {
921                  priority_selected[pixel_plot_x] = line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
923                  line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
924                  priority_selected[pixel_plot_x] = pen_selected;
922925               }
923926               if (priority_selected[pixel_plot_x + 1] == PRIORITY_BIT)
924927               {
925                  priority_selected[pixel_plot_x + 1] = line_buffer[pixel_plot_x + 1] = m_current_palette[pen_selected];
928                  line_buffer[pixel_plot_x + 1] = m_current_palette[pen_selected];
929                  priority_selected[pixel_plot_x + 1] = pen_selected;
926930               }
927931            }
928932            if (m_collision_buffer[pixel_plot_x] != 1)
r13785r13786
956960
957961            if (!(priority_selected[pixel_plot_x] & PRIORITY_BIT))
958962            {
959               priority_selected[pixel_plot_x] = line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
963               line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
964               priority_selected[pixel_plot_x] = pen_selected;
960965            }
961966            else
962967            {
963968               if (priority_selected[pixel_plot_x] == PRIORITY_BIT)
964969               {
965                  priority_selected[pixel_plot_x] = line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
970                  line_buffer[pixel_plot_x] = m_current_palette[pen_selected];
971                  priority_selected[pixel_plot_x] = pen_selected;
966972               }
967973            }
968974            if (m_collision_buffer[pixel_plot_x] != 1)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team