Patryk Obara
0b505db4d8
Print newline after 'config -wcd'
2020-02-15 19:10:20 +01:00
Patryk Obara
8c8b1b58d7
Print newline after 'config -l'
2020-02-15 19:10:20 +01:00
Patryk Obara
25d1890196
Fix crash on 'config -get "foo bar"'
...
Crash happened due to mismatch between internationalization string and
parameters passed to WriteOut.
Also, print newline after output if no error occured.
2020-02-15 19:10:20 +01:00
Patryk Obara
270c9351e2
Print newline after 'config /?'
...
Also, remove unnecesary line breaks and improve formatting a little.
2020-02-15 19:10:20 +01:00
Patryk Obara
19b2469e49
Format help section for 'render.scaler' for 80 columns
2020-02-15 19:10:20 +01:00
Patryk Obara
5ed90b57eb
Change 'render.aspect' default to 'true'
...
We don't use surface output by default, so there's no point in keeping
square-pixels by default due to performance issues.
2020-02-15 19:10:20 +01:00
Patryk Obara
1d5e01f73c
Update allowed issues limit
2020-02-15 17:54:46 +01:00
Patryk Obara
6099ab60f3
Merge branch 'svn/trunk' r4326
2020-02-15 17:53:38 +01:00
Peter Veenstra
9912151a89
Add patch 285 from MHM to fix bug 367, mimics the normal event.gain code
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4326
2020-02-14 21:52:10 +00:00
Peter Veenstra
4d4c738ca7
fix two tiny bugs introduced by 4065.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4325
2020-02-14 21:20:31 +00:00
Peter Veenstra
5d7c4f0540
Fix bug 469. Give 640x480 and upwards square pixels and several fixes for high colour modes. (jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4324
2020-02-14 19:02:29 +00:00
Peter Veenstra
a2f473cebd
Fix compilation for platforms where the include guard is different and the exported symbol was changed by Khronos.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4323
2020-02-14 16:53:52 +00:00
krcroft
675d8b99bf
Check dependencies and improve messages
2020-02-14 09:29:39 +01:00
krcroft
cdb6957bb6
Store GitHub credentials using git
2020-02-14 09:29:39 +01:00
krcroft
94cd6df6cd
Add a script to fetch and diff GitHub workflow logs
2020-02-14 09:29:39 +01:00
Patryk Obara
89e9e7336f
Update issues limit for new clang static analyser
...
Updated Clang 9.0 just landed in Ubuntu repositories and is now
available via GitHub CI. Static analyser detects many more issues now.
2020-02-14 09:08:11 +01:00
Peter Veenstra
5fc132c124
Improve logging and OS X support (jmarsh).
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4322
2020-02-13 20:39:45 +00:00
Patryk Obara
c3b9b36e2a
Merge branch 'svn/trunk' r4321
2020-02-12 21:02:10 +01:00
Peter Veenstra
c765582c3e
Some fixes to 4319 by jmarsh.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4321
2020-02-12 16:18:05 +00:00
Patryk Obara
80d71e7442
Merge branch 'svn/trunk' r4320
2020-02-12 09:00:33 +01:00
Patryk Obara
45704c95fe
Remove useless cast
2020-02-12 08:43:13 +01:00
Patryk Obara
0319f0955c
Avoid duplicated calls to buf.str()
2020-02-12 08:42:23 +01:00
Patryk Obara
b7ec86f980
Prevent compilation of unreachable code
...
Fixes a finding from PVS-Studio and Coverity each.
2020-02-12 08:40:39 +01:00
Patryk Obara
e872ea0169
Use memory safe container for GL error log
...
Fixes V576 warning from PVS-Studio - in this case PVS is somewhat
pedantic, as it warns about printf'ing of malloc'ed memory and risk the
associated problems in OOM situations.
In this case it can be a problem, as LOG_MSG aka GFX_ShowMsg
allocates memory during printing in result an error message could cause
stack overflow, although it's extremely unlikely on modern OSes.
Avoid triggering this warning by using memory-safe container and using
C++11 data() accessor to vector internal buffer; in case of OOM
situation, stack will be unrolled and program should exit with nice
error message.
2020-02-12 08:40:01 +01:00
Patryk Obara
be6b446028
Merge branch 'svn/trunk' r4319
2020-02-12 08:39:40 +01:00
ripsaw8080
c91f46905b
Report Q-Channel track number in BCD, meaning it is not converted to binary by the CD-ROM device driver. Fixes the CD-Player feature of DOS Navigator 1.51 when playing past track 15.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4320
2020-02-11 22:02:03 +00:00
Peter Veenstra
4a565a75ed
Add OpenGL shader support. (patch by ny00123 and refined by jmarsh). Add several builtin ones that mimic the scalers and some extra. Thanks jmarsh
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4319
2020-02-10 18:59:01 +00:00
Patryk Obara
e74e52404b
Update allowed warnings limits
2020-02-10 03:44:37 +01:00
Patryk Obara
7677511aa3
Initialize imm variable
...
This is a small issue pointed out by Coverity; this variable might be
later used uninitialized in several places.
Making this change to test if Coverity updates report summary only after
the numbers actually changed (we just had fresh scan, but Coverity keeps
showing summary from few days ago).
2020-02-10 03:23:54 +01:00
Patryk Obara
5c8b1edeb0
Merge branch 'svn/trunk' r4318
2020-02-10 02:54:10 +01:00
Peter Veenstra
62ab91a269
Add LOGC to log cs:ip only. Modified version of patch 282 from Scott Percival.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4318
2020-02-09 19:18:56 +00:00
Patryk Obara
bb794fc2f2
Update allowed warnings limits
2020-02-08 15:15:13 +01:00
Patryk Obara
bbd40ca73e
Merge branch 'svn/trunk' r4317
2020-02-08 14:56:52 +01:00
Patryk Obara
77c4523723
Byteswap captured audio samples on PPC
...
Fixes : #161
2020-02-08 14:56:14 +01:00
Patryk Obara
e0e17ac6d9
Sync with branch 'svn/trunk' r4315
...
Revisions 4314 and 4315 were reverted:
- r4314 introduced several technical issues; keeping it away from
the master branch until some improvements will land in SVN.
- r4315 touches code related to overlay, which was completely removed when
porting to SDL2; this revert makes future merge commit cleaner.
2020-02-08 14:53:28 +01:00
Patryk Obara
b7029dac06
Revert "Rewrite video capturing and (…)" r4314
...
This reverts commit 987a48600d
.
2020-02-08 14:52:48 +01:00
Patryk Obara
9264bbf969
Revert "Some graphics cards return (…)" r4315
...
This reverts commit eb9b86269d
.
2020-02-08 14:52:11 +01:00
Patryk Obara
cd5cd2fc95
Be more precise about CGA support in upstream
2020-02-08 00:01:00 +01:00
Patryk Obara
d0755ec2b5
Mention CGA/mono in README.md
2020-02-07 23:54:22 +01:00
Peter Veenstra
ae80176bbb
Increase limits a bit more for people who want to use that.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4317
2020-02-07 15:41:31 +00:00
Peter Veenstra
2dec4d0a11
Limit max software scaler line limit to a 4k monitor. (relevant for people who use larger scalers)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4316
2020-02-07 15:39:21 +00:00
Peter Veenstra
eb9b86269d
Some graphics cards return a too small overlay when the size is larger than 1024. Fall back in that case.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4315
2020-02-07 14:25:52 +00:00
krcroft
36e3789e91
Remove unecessary check and zeroing of arguments
...
This function uses its boolean return code to indicate success
or failure, which all callers check prior to using any of the
referenced arguments. Therefore it's unecessary to zero-out
referenced arguments or use intermediate variables.
2020-02-07 00:23:36 -08:00
krcroft
8382eb0e7e
Reduce the track number's type to comply with MSCDEX
2020-02-07 00:23:36 -08:00
krcroft
95dc9db727
Update allowed warnings limits
2020-02-07 00:23:35 -08:00
krcroft
e1fec4beb7
Refactor slightly to clarify the flow and move to one return-point
...
This also squashes a PVS high issue mentioning that 'subUnit'
is checked after it was used.
2020-02-07 00:23:35 -08:00
krcroft
0272145955
Make the MSCDEX Audio Disk Info return compliant track-ranges
...
The specification says that legal track values range from 1 to 99,
where as the prior code would return 0 if any issue was encountered.
The spec has no allowance for issues in this function, and therefore
we're bound to simply return 1 instead.
2020-02-07 00:23:34 -08:00
krcroft
1cc88953de
Simplify Pause and Stop CD states
2020-02-07 00:23:34 -08:00
krcroft
7cac8e4c4f
Mimick CD players when first positioning the play head
...
For example, audio CD players will typically position themselves in
preparation to play the first audio track when "Play" is pushed.
This even occurs for mixed-mode CDs, where the player will start
playing at the first audio track. Therefore, we try to find the most
viable audio track and only fall back to defaults if needed.
(instead of "all zeros" like before).
2020-02-07 00:23:34 -08:00
krcroft
7f39fe86b4
Use "=" assignment when creating references and iterators
2020-02-07 00:23:31 -08:00