Skip to content

Crashing on DOSBOX when mouse leaves drawing area #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ArtificialRaccoon opened this issue Dec 30, 2024 · 0 comments
Open

Crashing on DOSBOX when mouse leaves drawing area #7

ArtificialRaccoon opened this issue Dec 30, 2024 · 0 comments

Comments

@ArtificialRaccoon
Copy link

Allegro based programs will crash when run under DOSBOX staging or DOSBOX-X (not on hardware), when the mouse is enabled and it leaves the edge of the screen. This appears to be a known issue with Allegro and DOSBOX, seen here:
dosbox-staging/dosbox-staging#2180
joncampbell123/dosbox-x#3262

A fix has been suggested here:
dosbox-staging/dosbox-staging#2180 (comment)

The fix is as follows, in the file "src/dos/dsystem.c", comment out "__dpmi_yield();" from the sys_dos_yield_timeslice(void) function.

I've tested this with my own fork of this repository, and found that it does appear to work without creating any new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant