Skip to content

Commit

Permalink
DMD: fix LibPinMame (again...)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbousquet committed Sep 9, 2024
1 parent 3de7ec9 commit 2cbe9c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/wpc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3139,10 +3139,7 @@ void core_dmd_video_update(struct mame_bitmap *bitmap, const struct rectangle *c
dmdDotLum[ii] = dmdDotRaw[ii] << shift;
}

#if defined(PINMAME)
core_dmd_render_internal(bitmap, layout->left, layout->top, layout->length, layout->start, dmdDotLum, pmoptions.dmd_antialias && !(layout->type & CORE_DMDNOAA));

#elif defined(LIBPINMAME)
#if defined(LIBPINMAME)
const int isMainDMD = layout->length >= 128; // Up to 2 main DMDs (1 for all games, except Strike'n Spares which has 2)
if (isMainDMD) {
core_dmd_render_lpm(layout->length, layout->start, dmdDotLum, dmdDotRaw);
Expand All @@ -3159,6 +3156,10 @@ void core_dmd_video_update(struct mame_bitmap *bitmap, const struct rectangle *c
core_dmd_capture_frame(layout->length, layout->start, dmdDotRaw, raw_dmd_frame_count ,raw_dmd_frames);
has_DMD_Video = 1;
}

#elif defined(PINMAME)
core_dmd_render_internal(bitmap, layout->left, layout->top, layout->length, layout->start, dmdDotLum, pmoptions.dmd_antialias && !(layout->type & CORE_DMDNOAA));

#endif
}

Expand Down

0 comments on commit 2cbe9c0

Please sign in to comment.