Commit Graph

75879 Commits

Author SHA1 Message Date
arbee
f6b3dcdb25 mac: fix crash regression on macqd700 [R. Belmont] 2020-09-27 19:23:30 -04:00
ajrhacker
b89c07596f
Merge pull request #7298 from ksherlock/picture_image_device_get_bitmap
picture_image_device::get_bitmap can return a null reference
2020-09-27 15:23:32 -04:00
Kelvin Sherlock
fcacca9a41 picture_image_device::get_bitmap was returning a possibly-null reference
null references are not valid/undefined in C++ so compilers like to
eliminate the null pointer check.

switched to returning a pointer instead.
2020-09-27 11:22:22 -04:00
couriersud
81c484197b netlist: Fix astro blaster sonar sound
* Also fix two singular matrices being created.
2020-09-27 13:21:32 +02:00
Emmanuel Vadot
e996e148f3
FreeBSD fixes (#7295)
* psixptty: Fix for FreeBSD

We need to check for __FreeBSD__ not __FreeBSD_kernel__

* FreeBSD: Use gl includes from pkg-config

FreeBSD doesn't install the includes from 3rdparty software in a default
location so use pkg-config to get the correct path.

* FreeBSD: genieos is named simple bsd
2020-09-27 20:41:14 +10:00
Vas Crabb
a1d35e5abf Cleaned up bitmap API.
Made const-qualified pixel accessors (pix, pixt, raw_pixptr) return
const-qualified references/pointers to pixesl, and added non-const
versions.  This makes bitmap more like standard library containers where
const protects the content as well as the dimensions.

Made the templated pixt accessor protected - having it public makes it
too easy to inadvertently get a pointer to the wrong location.

Removed the pix(8|16|32|64) accessors from the specific bitmaps.  You
could only use the "correct" one anyway, and having the "incorrect" ones
available prevented explicit instantiations of the class template
because the static assertions would fail.  You can still see the pixel
type in the bitmap class names, and you can't assign the result of
&pix(y, x) to the wrong kind of pointer without a cast.

Added fill member functions to the specific bitmap template, and added
a explicit instantiations.  This allows the bitmap size check to be
skipped on most bitmap fills, although the clipping check is still
there.  Also fixed a couple of places that were trying to fill an
indexed 16-bit bitmap with rgb_t::black() exposed by this (replaced with
zero to get the same net effect).  The explicit template instantiations
in the .cpp file mean the compiler can inline the function if necessary,
but don't need to generate a local out-of-line body if it chooses not
to.

Extended the size of the fill value parameter in the base bitmap class
to 64 bits so it works correctly for 64-bit bitmaps.

Fixed places where IE15 and VGM visualiser weren't accounting for row
bytes potentially being larger than width.

Fixed an off-by-one in an HP-DIO card where it was treating the Topcat
cursor right edge as exclusive.

Updated everything to work with the API changes, reduced the scope of
many variables, added more const, and replaced a few fill/copy loops
with stuff from <algorithm>.
2020-09-27 14:00:42 +10:00
Vas Crabb
d294948a3b microtan.cpp: Swap a couple of default key mappings to better reflect layout. 2020-09-27 12:56:38 +10:00
Vas Crabb
6e807013c5 Disable SOUND_DEBUG for non-debug builds, and srcclean 2020-09-27 11:00:56 +10:00
ArcadeShadow
7dad0f4f58 ibm5150 - New working software list additions
Added: 4D Sports Driving (3.5", Euro), 4D Sports Driving (5.25", Euro)
Redumped: [stunts] (the old one has a modified OEM ID)
Misc: [stunts] and [stunts35] are now clones of [4dsdrv] ; Renamed developer info on [cadaver], [menace], [caveugh], [indycrus35], [serenia], [kingqst], [mineshft]
2020-09-26 16:12:32 -07:00
r09
d30af607c2
fmtowns_cd.xml: 3 new dumps, 5 replacements, railtycn/lipsadv3 floppies (#7281)
* fmtowns_cd.xml: 3 new dumps, 5 replacements, railtycn floppy

- New dumps (working):

NHK Eigo de Asobo Vol. 3 - Bernard no Amusement Park [redump.org]
Oshiete Noobow [sampson]
Z's Triphony DigitalCraft Towns (HMB-212) [redump.org]

- Replaced entries with dumps from redump.org:

Burai Kanketsu-hen
Jealousy
Kindan no Ketsuzoku
Lunatic Dawn II
Necronomicon

- Added floppy disk dump to Railroad Tycoon and promoted to working [anonymous]

* fmtowns_cd.xml: add recreated floppy image for lipsadv3
2020-09-26 17:55:43 -04:00
Darkstar
3a810a6e08 ibm5150.xml: Add Fire & Forget 2 2020-09-26 14:37:43 -07:00
Justin Kerk
b492a243cf ibm5170.xml: Fix validity check 2020-09-26 14:33:54 -07:00
Davide Cavalca
f9dce10bb3
ibm5170: new software list addition (#7227)
New working software list additions
-----------------------------------
ibm5170: DOOM (1.2, Shareware for BBS SysOps)  [Davide Cavalca]
2020-09-26 21:27:41 +00:00
AJR
c9920a0314 omti8621: Add as standard 16-bit ISA device 2020-09-26 17:19:26 -04:00
ArcadeShadow
f848c3b901 ibm5170 - New working software list additions
Added: In Extremis, Mega lo Mania (Germany)
Redumped: The Humans (3.5" DD) (redump disk 1 - game is now working)
2020-09-26 14:01:41 -07:00
yz70s
5f93f1ba04 nforcepc/xbox: set values for various configuration space pci registers 2020-09-26 19:55:59 +02:00
AJR
ac99753eb6 omti8621: Reimplement FDC rate selection 2020-09-26 13:19:47 -04:00
Robbbert
2baeac95fc mbee: marked mbee as MNW, because the keyboard broke a few months ago. 2020-09-27 03:04:45 +10:00
Vas Crabb
b38ffb6bff Changed some sound devices back to using std::unique_ptr<T []> for
things that don't need to change size.

Using a std::vector has additional overhead for keeping the size and
allocated size, and it means you can inadvertently resize it.  Also, if
you register one for save state then cause it to reallocate, very bad
things happen.

Fixed some mixed tab/space indents in sound/mm5837.h

Changed namco_163.cpp to have registers as an array in the device, since
there aren't many of them, and also restored zeroing them on start.
2020-09-27 01:24:38 +10:00
Robbbert
59ae905ee3 x1: various keyboard fixes
- added support for capslock and control

- default to lowercase like real machine

- fixed Z not shifting

- fixed missing natural keys
2020-09-26 23:57:10 +10:00
arbee
3af6cad398 seibuspi: allow recovery if MAME is exited during the initial flash process [R. Belmont] 2020-09-26 08:42:50 -04:00
Robbbert
7121fab8d0 vixen: various natural key fixes 2020-09-26 21:35:29 +10:00
Robbbert
27507f3fca vidbrain: added function keys as natural keys; added notes. 2020-09-26 20:48:09 +10:00
Ivan Vangelista
05b9af367f nmk16.cpp: removed unintendedly committed line 2020-09-26 08:40:47 +02:00
Ivan Vangelista
2887d50408 nmk16.cpp: dumped mask ROMs for tdragon3h [hammy] 2020-09-26 08:34:48 +02:00
Robbbert
437b5e08e6 tmc600: a few natural keyboard corrections. 2020-09-26 15:11:06 +10:00
AJR
98f6fde104 Add abs, bit, s8, s16, s32 functions to debugger 2020-09-25 23:01:33 -04:00
AJR
78612bd01f ymf271: Modernize save state registration; allow disabling of side effects for reading 2020-09-25 20:33:25 -04:00
couriersud
15ea16e149 netlist: minor code cleanup.
* a number of minor fixes leading to an increase of 570% to 588% on
pongf.
* admittedly micro optimization.
* Includes some comments why certain decisions have been taken.
2020-09-25 21:44:54 +02:00
AJR
dcc2781365 mc6845: Fix off-by-one error in calculating bottom of DE window 2020-09-25 14:50:04 -04:00
Robbbert
e6ae875069 d6800: cleaned up keyboard code 2020-09-26 03:41:22 +10:00
Robbbert
96e86eb9b9 ti85: fixed typo 2020-09-26 03:29:10 +10:00
Robbbert
6280ffba40 spc1000: added directional natural keys 2020-09-26 02:48:15 +10:00
lfantoniosi
206b44fa25
imd_dsk: Fix bug when changing IMD image [lfantoniosi] (#7289)
* Fix bug when changing IMD image

These arrays weren't zeroed when changing a IMD disk for saving.
2020-09-25 12:27:07 -04:00
Robbbert
7d70d5fcd5 sbc6510: added lowercase natural keys 2020-09-26 02:17:37 +10:00
MetalliC
09741cdbc1 pgm2.cpp measured common resolution refresh rate [ekorz] 2020-09-25 18:56:01 +03:00
Ivan Vangelista
46f4fa918b aristmk4.cpp: corrected ROM labels for fhunter and fhuntera [Heihachi_73]
astrof.cpp: added manufacturer for sstarbtl bootleg
2020-09-25 17:21:21 +02:00
Robbbert
c03f3f21c5 d6800: fixed duplicate keys in Input(this machine) and added key labels. 2020-09-26 00:43:03 +10:00
Robbbert
1a08986ca6 jr100: added [@] natural keys; turned down the volume. 2020-09-25 23:07:38 +10:00
Robbbert
6596483ae2 d6800: The design of this system makes it impossible for paste to work, so removed the definitions. 2020-09-25 23:04:51 +10:00
Robbbert
ecc7bb2bec osi: added notes and a few extra natural keys 2020-09-25 22:30:50 +10:00
Vas Crabb
2323b68878 Fix MT07756 (ROM sets incorrectly being reported as missing) by partially reverting 44416bee2d.
Also some random minor cleanup.
2020-09-25 20:53:06 +10:00
Robbbert
37b3c550da bbc_flop_hybrid.xml:383 : Validation error. 2020-09-25 20:24:58 +10:00
Robbbert
3137660256 psion5mx: added/corrected some natural keys. 2020-09-25 20:21:03 +10:00
Nigel Barnes
c8f2cd7ded New working software list additions
-----------------------------------
bbc_flop_hybrid: Various discs for use with the Hybrid Music System.
2020-09-25 11:06:45 +01:00
Nigel Barnes
e7b852c7a3 bus/bbc/1mhzbus: Added the Acorn Music 500, Hybrid Music 5000 Synthesiser, Hybrid Music 3000 Expander, and Peartree Music 87 Synthesiser. 2020-09-25 11:06:45 +01:00
Robbbert
5d841ac44f pcw: added missing @ key 2020-09-25 18:43:10 +10:00
Aaron Giles
98b7d3bcbc sound: Fix assertion when loading save state from command line. 2020-09-24 21:00:49 -07:00
arbee
a0aa2bcde7 es5503 updates: [R. Belmont]
- Fix some corner cases with swap mode on even vs. odd oscillators
- Use std::vector as intermediate buffer and resize on sample rate changes
2020-09-24 22:23:44 -04:00
ajrhacker
673ee99a3e
Merge pull request #7288 from DavidHaywood/240920_2
small quality of life cleanups
2020-09-24 19:48:16 -04:00