1
0
Fork 0
Commit graph

39 commits

Author SHA1 Message Date
Anton Shepelev
d1be65b105 Add output type texturepp for pixel-perfect scaling
The new output type `texturepp' was added, which implements
pixel-perfect scaling using SDL's hardware-accelerated texture output.
In pixel-pefect mode, each original pixel is displayed as a rectangle m
by n pixels, so that m:n yields a reasonably good approximation of the
pixel aspect ratio (PAR) of the emulated graphical mode while using as
much screen space as possible. The balance between the precision of
aspect ratio and the utilisation of screen space is specified as the
`parweight' parameter to pp_getscale() and is currently hard-coded in
sdlmain.cpp.

This implementation emulatates pixel-perfect mode as a special case of
nearest-neighbor interpolation when the horisontal and vertical scaling
factors are integers.
2020-03-09 20:12:36 +01:00
Joshua Fern
f2029d71d8 Update copyright dates to 2020 2020-03-07 00:18:01 +01:00
Patryk Obara
be6b446028 Merge branch 'svn/trunk' r4319 2020-02-12 08:39:40 +01: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
krcroft
3446db1ee9 Expand mouse control methods
Replace the [sdl] `autolock = true/false` configuration setting with [sdl]
`capture_mouse = ...` with a two-value setting.

The first value defines how the mouse is controlled:
- onclick:       The mouse will be captured with a click inside the window.
- onstart:       The mouse is captured immediately on start (similar to real DOS).
- seamless:      The mouse will move seamlessly in and out of DOSBox and cannot be captured.
- nomouse:       The mouse is disabled and hidden without any input sent to the game.

The second value defines how middle-clicks are handled:
- middlegame:    Middle-clicks are sent to the game (not used to uncapture the mouse).
- middlerelease: Middle-click will uncapture the mouse when windowed (not sent to the game).

Middle-clicks are sent to the game when fullscreen or when seamless control is set.

The default setting of "onclick middlegame" reproduces DOSBox's existing behavior.
2020-02-02 00:43:24 +01:00
Patryk Obara
0d108a7df5 Remove GFX_SetPalette
After move to SDL2, this function is no longer useful.
2019-12-26 03:23:19 +01:00
Peter Veenstra
1fbaff47fc Update year and address of FSF
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4183
2019-01-25 14:09:58 +00:00
Peter Veenstra
5bb10db88b Time keeps on ticking
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4109
2018-05-29 12:58:58 +00:00
Peter Veenstra
6cf39c1fc6 Years update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4021
2017-05-30 11:35:08 +00:00
Peter Veenstra
0f4c92ca32 Year update.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3878
2015-01-06 14:40:32 +00:00
Peter Veenstra
2fea508f7f Year update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3812
2013-01-15 09:03:13 +00:00
Peter Veenstra
999f33de27 Update year. Remove CVS tags
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3700
2011-04-26 09:34:55 +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
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
e08ea925b7 pedantic warnings.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3209
2008-08-24 16:43:06 +00:00
Sebastian Strohhäcker
cb1b1fcbce release special alt-state when starting the gui (fixes tab-completion bug)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3107
2008-02-21 19:25:34 +00:00
Peter Veenstra
c4f26c724b Add menu to dosbox. V8 from Moe, with some fixes inspired by ykhwong
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3028
2007-10-28 16:36:42 +00:00
Peter Veenstra
fdd16dea1a Happy New Year\!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2728
2007-01-08 19:45:42 +00:00
Sebastian Strohhäcker
fcd1a96808 implement different joystick querying, reduce polling intervall (thanks hal for the ideas)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2676
2006-07-22 18:32:29 +00:00
Sebastian Strohhäcker
dca519a601 fix keyboard handling for sdl windib driver as far as possible
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2670
2006-07-10 19:32:15 +00:00
Peter Veenstra
af25c4382d Add workaround for corrupted surface on exposure event.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2519
2006-02-26 16:04:35 +00:00
Peter Veenstra
df67775306 time passes on and on....
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2480
2006-02-09 11:47:57 +00:00
Sjoerd van der Berg
a9f5e6619b Scaler rewrite for detecting changes
New scalers for tv3x, rgb2x, rgb3x, scan2x, scan3x
Only updaterect the changed parts in sdl
Add support for 15/16/32bpp modes
Add support for highres 4bpp modes
Rewrite of vga page handlers for most other modes
AVI capturing using zmbv codec


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2442
2006-01-30 09:54:34 +00:00
Peter Veenstra
9aa295d8aa new include system
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2137
2005-03-24 10:32:09 +00:00
Peter Veenstra
2094d8b985 Year update
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2106
2005-02-10 10:21:12 +00:00
Peter Veenstra
ca409fd57c Typo in preamble
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1899
2004-08-04 09:12:57 +00:00
Peter Veenstra
2743aca610 Fixed problems with mouse locked and switching to mapper.
Added and exit button
Changed the way the mapper behaves if you want to add a new bind to a key.
Now it clears the screen so it's more clear that you pressed the add-key.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1831
2004-06-13 12:10:08 +00:00
Sjoerd van der Berg
9213fd5bd6 New rendering changes
New mapper changes


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1817
2004-06-10 07:18:53 +00:00
Sjoerd van der Berg
9bd827965c Add function to reset the screen
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1806
2004-05-25 19:35:14 +00:00
Sjoerd van der Berg
9bf1cd50f5 Opengl output support in SDL
Removed threading support in SDL
Rewrite of VGA Drawing to work line for line
Rewrite of VGA Text drawing using lookup tables
Rewrite of render function to handle the new line for line drawing.
Changed CGA/TANDY/Hercules to be more like their original hardware.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1611
2004-01-28 14:39:05 +00:00
Peter Veenstra
fcbd0fe854 Copyright to 2004
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1552
2004-01-10 14:03:36 +00:00
Sjoerd van der Berg
433ec14aca Added hardware overlay support with hardware scaling
Added fixed fullscreen resolutions for you LCD freaks


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1413
2003-11-08 10:10:03 +00:00
Sjoerd van der Berg
3ce6494b9d support for special blit scaler someday
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1322
2003-10-14 15:28:28 +00:00
Sjoerd van der Berg
860af6c52f Add new render screen flag for screen shadowing for unaligned renders.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@778
2003-03-19 22:37:19 +00:00
Sjoerd van der Berg
9d8a3b6020 Support for async display udpates.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@622
2003-01-05 12:33:22 +00:00
Sjoerd van der Berg
700d1c6e36 New rendering and video mode setup functions.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@595
2002-12-22 15:23:30 +00:00
Sjoerd van der Berg
bf2bf57ffa SDL Structures moved into sdlmain.cpp
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@340
2002-10-18 09:17:56 +00:00
Peter Veenstra
b5d4c88ad7 added a switch to windowed mode in E_Exit
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@257
2002-09-03 13:43:44 +00:00
Sjoerd van der Berg
42e5d0b779 First CVS upload.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@80
2002-07-27 13:08:48 +00:00