1
0
Fork 0
Commit graph

518 commits

Author SHA1 Message Date
Peter Veenstra
b25d481e66 Fix startup detection of numlock and capslock.
Improve behaviour with SDL 1.2.14 with respect to lock keys.
What works:
- dosbox compiled against SDL < 1.2.14 used with SDL < 1.2.14
- dosbox compiled against SDL < 1.2.14 used with SDL >= 1.2.14
- dosbox compiled against SDL >=1.2.14 used with SDL >= 1.2.14
What doesn't work:
- dosbox compiled against SDL >=1.2.14 used with SDL < 1.2.14
- debian/ubuntu SDL < 1.2.14. (Check comment in src/gui/sdlmain.cpp on how to fix it.)
Untested:
- debian/ubuntu SDL >=1.2.14.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3689
2011-03-24 10:46:56 +00:00
Ralf Grillenberger
5d865dafc8 VESA patch:
- implement text mode support, add modes 108h through 10Ch
- adjust the S3 text modes to the values found on real hardware
- added defines for VESA return values
- rewrite get/set scanlength and set display start for completeness
- catch a possible division by zero, part of SF patch 3154782, thanks Daniel Richard G.
- align display page sizes to 64k for compatibility

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3684
2011-03-06 16:34:11 +00:00
Ralf Grillenberger
c2622359f9 - implement Tandy special 4-color palette handling
- remove 3d8/3d9 from PCJr mode (PCJr didn't have it)
- update INT10 palette functions accordingly
- add a level of indirection to Tandy and PCjr palette deconding to fix video recording with on-screen palette changes
- enable line-by-line emulation for Tandy too
- machine-specific implementation of the color when display is disabled (vgaonly too)
- enable the light pen stub on all machines that it is documented for
- mask off a bank-selection bit that is not used under a specific circumstance

Fixes Alley Cat palette on PCJr, Gauntlet, Ghostbusters, Pirates! on Tandy, Video recording on Tandy/PCJr where the palette is changed on-screen


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3647
2010-10-01 19:39:14 +00:00
Sebastian Strohhäcker
959ea1527f change EMS driver attribute word (ripsaw, fixes David Leadbetter's Greens)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3646
2010-09-28 18:16:11 +00:00
Sebastian Strohhäcker
380ca5a9a2 allow arbitrary segments to be remapped by the EMM functions (peter ferrie; fixes Airline Simulator 2)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3644
2010-09-27 20:32:00 +00:00
Sebastian Strohhäcker
974158842f different EMS emulation types (ems board style, emm386 extended compatibility),
fixes sound crackling in certain emm386-aware games

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3642
2010-09-26 15:26:46 +00:00
Sebastian Strohhäcker
4654193d3a special handling of attribute for write character function in certain monochrome VGA mode (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3640
2010-09-25 19:59:37 +00:00
Sebastian Strohhäcker
7bb29e185c small VGA grayscale summing fix
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3639
2010-09-25 17:31:14 +00:00
Ralf Grillenberger
5523df5679 SF patch 2923483: INT10: Accept the page argument when loading font bitmaps. Thanks makovick.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3638
2010-09-09 18:59:00 +00:00
Ralf Grillenberger
da00ef32bb BIOS serial port interface: Do not misinterpret DCD as timeout.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3636
2010-08-12 14:58:17 +00:00
Ralf Grillenberger
dc0732f09f Tandy: Add 16kb of DOS memory. Fixes bad graphics in Mickey's Space Adventure and Chuck Yeager's Air Combat, as well as flickering screens in Ghostbusters.
Patch by ripsaw8080

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3626
2010-07-28 20:56:12 +00:00
Ralf Grillenberger
47281bd3e5 INT10 EGA: Implement font intensity/blinking switch, fix font height calculation, screen parameters - makes Norton Commander work with machine=ega.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3619
2010-07-09 20:56:32 +00:00
Peter Veenstra
f3c1902dab Add green/amber hercules mode emulation support. (Thanks ripsaw and h-a-l-9000)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3579
2010-04-15 13:22:21 +00:00
Ralf Grillenberger
8912e7ab6f -CGA, PCJr, Tandy: Add video blanking, change display start latch timing, sync pulse width correction,
-PCJr, Tandy: implement vertical retrace interrupt,
-PCJr, CGA: do line-by-line video emulation,
-PCJr: support on-screen change of color modes 4medium to 16low (used by Ghostbusters booter),
-All machines: only update the video timing when needed (Jungle Hunt, others that synchronize to the video screen might profit), only resize the output window when needed, start up the video more quickly at the beginning.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3572
2010-04-04 22:39:06 +00:00
Ralf Grillenberger
b055c7a87f Fix vsync pulse position for CGA, Hercules, PCJr and Tandy machines. Set the display enable bit for mode 6.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3571
2010-04-04 21:07:27 +00:00
Ralf Grillenberger
e8d765b625 Add workaround for INT10 text output in ET4000 800x600x4bpp SVGA mode (Gateway 2)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3570
2010-04-04 18:58:41 +00:00
Ralf Grillenberger
f1be5cbac0 INT10 support for video blanking
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3569
2010-04-04 18:49:21 +00:00
Peter Veenstra
ae1be112a2 To work or not to work...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3564
2010-04-03 16:13:51 +00:00
Peter Veenstra
61fcc1304d Provide some feedback.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3563
2010-04-03 15:30:25 +00:00
Peter Veenstra
a78b2c4f8b Update year
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3548
2010-02-11 13:36:50 +00:00
Peter Veenstra
e4666d2baf basic SDL 1.2.14 support.(Still testing)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3546
2010-02-10 20:33:31 +00:00
Peter Veenstra
641160f569 Add basic granularity support. (ripsaw, rc1)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3541
2010-01-31 15:02:41 +00:00
Peter Veenstra
3e936332a5 Don't parse mouse button release and presses with numbers outside the amount of reported buttons.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3532
2010-01-11 14:56:30 +00:00
Ralf Grillenberger
c71c0246e9 Add the S3-specific 640x480 256 color mode. Fixes regression in "Wooden Ships and Iron Men" and "I Have No Mouth And I Must Scream".
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3518
2009-12-26 15:11:23 +00:00
Ralf Grillenberger
cbaa9c8ade The CGA mode register is actually not part of the video parameter table. Fixes regressions in the 3ktrivia, Hellcat and PCArcade booters.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3516
2009-12-18 14:02:32 +00:00
Ralf Grillenberger
db0aef34cf Don't touch the monochrome adapter if the BIOS equipment word is set to color card - fixes Testdrive in Hercules mode
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3497
2009-11-09 16:33:02 +00:00
Ralf Grillenberger
869328c663 - read the correct position in the video parameter table, fixes seven spirits of ra title screen
- save the data written to the CGA control port


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3486
2009-10-19 16:00:22 +00:00
Sebastian Strohhäcker
23c833c794 fix mode6/9 scrolling (ripsaw/etillite, fixes Orphee), see sf bug #2501673
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3483
2009-10-15 20:36:56 +00:00
Sebastian Strohhäcker
8aadb7d165 use emm system handle for vcpi, increase system handle pages (fixes strange mk2 bug related to continue screen);
some minor ems improvements so msdos mem.exe detects ems memory


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3480
2009-10-11 17:11:52 +00:00
Ralf Grillenberger
8132bdca29 Most of the INT14 interface rewritten for better compatibility
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3479
2009-10-10 13:26:46 +00:00
Sebastian Strohhäcker
75d7ee65e9 add special int10 scanline modifying function (hal, fixes some mz700 emulator and others)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3463
2009-09-06 19:25:34 +00:00
Sebastian Strohhäcker
decb3823d2 int13 unconditionally enables the interrupt flag on return (ripsaw, fixes some pirates booter version);
change the set/clear flag for callback return functions a bit (hal)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3458
2009-08-23 17:24:54 +00:00
Sebastian Strohhäcker
b9e085dd52 narrow down low-level disk read hack (installers use it as hd-check), thanks to ripsaw; fixes Kick Off 3 regression
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3456
2009-08-12 21:16:09 +00:00
Sebastian Strohhäcker
ff7bd7dc3c some refinements to the video parameter table handling
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3454
2009-08-01 13:39:48 +00:00
Sebastian Strohhäcker
e744620458 add video parameter table for low-number video modes (special usage for cga/tandy/pcjr machines), thanks to hal;
some cleanup


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3452
2009-07-31 15:36:01 +00:00
Sebastian Strohhäcker
655b7caa71 textmode address handling updated (hal)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3443
2009-07-11 10:25:25 +00:00
Sebastian Strohhäcker
26e4b50da0 vga attrib register/blanking updates (hal); cleanup
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3436
2009-06-28 14:56:14 +00:00
Sebastian Strohhäcker
31f6dccfa0 disable vcpi if no extended memory available (as no descriptor tables can be set up)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3432
2009-06-24 17:44:52 +00:00
Sebastian Strohhäcker
704221c89d add lowlevel tandy dac implementation
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3431
2009-06-23 17:46:05 +00:00
Peter Veenstra
6de523ff7b Add 0x31. Should improve Waterworld. Thanks ripsaw
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3427
2009-06-16 19:00:26 +00:00
Sebastian Strohhäcker
58ce4315f8 move callback default segment to bios standard;
use fixed default offset for irq0 as well (ripsaw, fixes tinker tales)


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3423
2009-06-11 16:05:17 +00:00
Sebastian Strohhäcker
4ad533c78f use different sb detection for tandy dac initialization
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3418
2009-06-07 10:18:14 +00:00
Sebastian Strohhäcker
618f0867c1 some more special handling for the emm system handle
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3417
2009-06-06 21:52:09 +00:00
Peter Veenstra
16d14b78e1 Some year and version numbers
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3410
2009-05-27 09:15:42 +00:00
Peter Veenstra
fb2a129ca6 fix some nice compilation error. Blame woody ;)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3383
2009-05-14 17:51:47 +00:00
Sebastian Strohhäcker
a14636aea0 handle zero-pages ems allocation requests correctly (fixes VBDOS)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3381
2009-05-14 17:05:58 +00:00
Sjoerd van der Berg
88caf1dc71 Add compiler testing for always_inline attribute
Add compiler testing for fastcall attribute
Add the FASTCALL define to visual c
Remove some overkill inline routines
Make sure that all the inline routines in headers are static


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3355
2009-04-25 16:25:03 +00:00
Peter Veenstra
b35cfb2e74 Several changes that speed limit the amount of mouse events. Keeping tracking of mode and UIR now (no action though). Fixes to Get buttonpress/release.(Tunnels of Armageddon). Reset less stuff on videomode changes (Stonekeep). Thanks for you help wd and ripsaw (beta3).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3344
2009-04-16 12:11:45 +00:00
Peter Veenstra
f95d934328 minor stuff
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3341
2009-04-11 07:58:39 +00:00
Sebastian Strohhäcker
904307ce5b add custom fast filesearch routines
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3314
2009-03-04 19:34:42 +00:00