Ray Chason
5683f88d36
A note on makefonts.lua
2022-10-05 20:25:34 -04:00
Ray Chason
31859f562e
Make the Terminus fonts an external package
...
Credit to Michael Allison for the patch and for the previous one
to build the fonts in the cross-compile.
2022-10-05 20:03:11 -04:00
Ray Chason
03a82720ef
Build fonts in the native build
2022-10-03 20:53:07 -04:00
Ray Chason
cb010b9859
Ignore the PSFs
2022-10-03 20:24:20 -04:00
Ray Chason
daf18eac91
Build the PSF fonts in the cross-compile
2022-10-03 20:22:11 -04:00
Ray Chason
176e94d1b9
Merge branch 'unicode' of https://github.com/chasonr/nethack into unicode
2022-10-02 20:41:21 -04:00
Ray Chason
d3cb84a313
Update the README for the fonts
2022-10-02 20:41:02 -04:00
Ray Chason
37f43c3b79
Rewrite the makefont program in Lua
2022-10-02 20:41:02 -04:00
Ray Chason
b4832b40fc
Support the DOSVGA build
2022-10-02 20:41:02 -04:00
Ray Chason
db74f82101
More native compile fixes
...
* subst doesn't seem to work in variable assignments
* LUADLL isn't meaningful for MS-DOS
2022-10-02 20:41:02 -04:00
Ray Chason
76a88ef2b0
Updates to the native compile
2022-10-02 20:41:02 -04:00
Ray Chason
8b6fe9d205
Support wide Curses on MS-DOS
...
Also, fix IBMGraphics on Curses
2022-10-02 20:41:02 -04:00
Ray Chason
df7bea0dbd
Update the README for the fonts
2022-10-02 20:38:30 -04:00
Ray Chason
b259184fad
Rewrite the makefont program in Lua
2022-10-02 13:29:47 -04:00
Ray Chason
05612f5c0f
Support the DOSVGA build
2022-10-02 03:12:03 -04:00
Ray Chason
53be334eff
More native compile fixes
...
* subst doesn't seem to work in variable assignments
* LUADLL isn't meaningful for MS-DOS
2022-10-02 01:44:06 -04:00
Ray Chason
85be4b8ac6
Updates to the native compile
2022-10-02 01:05:46 -04:00
Ray Chason
cab1f6d8c5
Support wide Curses on MS-DOS
...
Also, fix IBMGraphics on Curses
2022-10-01 23:44:42 -04:00
Ray Chason
31862b95b0
Fix undefined behavior when exiting Curses
...
* When saving: curses_exit_nhwindows calls curses_uncurse_terminal,
which calls endwin. curses_exit_nhwindows then calls raw_print,
which calls more Curses functions after endwin has been called.
Fix this by having curses_raw_print use puts if window_inited
is false.
* When dying, quitting, etc.: really_done opens the "Goodbye" window,
which refreshes the other windows when it closes. But the status
window (and possibly the map and message windows) are gone by that
point. The window pointers are properly NULLed, but the NULL is then
passed to touchwin. Fix this by checking window pointers for NULL.
2022-09-28 14:23:27 -07:00
Ray Chason
1f2a1efee5
Use QApplication::desktop for screen size on Qt5
...
5.15 has QWidget::screen, but older versions don't.
2021-12-30 10:56:07 -08:00
Ray Chason
35c12e2518
Use QApplication::desktop for screen size on Qt5
...
5.15 has QWidget::screen, but older versions don't.
2021-12-29 01:44:02 -05:00
chasonr
1ab84e055e
Merge branch 'NetHack-3.7' into msdos-video-doc
2020-02-02 10:15:32 -05:00
Ray Chason
1fb1967e42
Enable statue glyphs for cross compile
2020-02-01 16:48:37 -05:00
Ray Chason
f9b4ebae87
Remove code fragment causing compile error
2020-02-01 16:48:07 -05:00
Ray Chason
a391bf0e7b
Update description of OPTIONS=video
...
Document OPTIONS=video:vesa. Also, OPTIONS=video_width and video_height
work with vesa, not vga; and the TeX guidebook needs some syntax fixes.
2020-02-01 11:03:36 -05:00
Ray Chason
b52392a5bc
Make background appear as a proper black
2020-01-27 09:54:59 +02:00
Ray Chason
b296196a4a
Scale the font for large resolutions
2020-01-27 09:54:58 +02:00
Ray Chason
82a219c227
Lift restrictions on tilesets
...
Support full color tilesets with tiles of arbitrary size.
2020-01-27 09:54:58 +02:00
Ray Chason
34da5ea372
MSDOS/VESA: Make clipy and clipymax available to MS-DOS
...
VESA mode may need to scroll up and down as well as left and right.
2020-01-27 09:54:58 +02:00
Ray Chason
b2c8d916f6
Add set_tile_type, stretch_tile and free_tile
...
set_tile_type frees tileset memory not in use for the current tile
type (paletted or full color).
stretch_tile and free_tile support resizing tiles at run time.
2020-01-27 09:54:58 +02:00
Ray Chason
1870e5a41b
Fix bugs affecting full-color BMP files
2020-01-27 09:54:58 +02:00
Ray Chason
9460796a2b
MSDOS/VESA: Add video_width and video_height
...
To be used to set the video mode
2020-01-27 09:54:58 +02:00
Ray Chason
aa3303cafc
More bits for linear frame buffer
2020-01-27 09:54:58 +02:00
Ray Chason
8d9f31e91f
Support the linear frame buffer if available
...
If the linear frame buffer is in use, the entire frame buffer is
visible all at once, and no calls to the window function are needed.
2020-01-27 09:54:58 +02:00
Ray Chason
ab6424b31c
Call the window function directly if supported
...
Some BIOSes allow calling the window function directly, bypassing the
logic that distinguishes this call from other BIOS calls. Should be
faster on some systems.
2020-01-27 09:54:58 +02:00
Ray Chason
c0d1c4efb7
Use 8 bit mode if available
...
This was not previously done because the palette was not correctly set
up, and QEMU gave incorrect colors. The palette setup function now
falls back to the standard BIOS function if the VESA BIOS function
fails, which resolves the issue with QEMU. The mode selection logic now
favors 8 bit color if the tile set is compatible.
Using 8 bit mode means fewer writes to memory and fewer uses of the
BIOS window function.
2020-01-27 09:54:58 +02:00
Ray Chason
6f9e7b6b97
Fixes to build NetHack 3.7.0 on FreeDOS
2019-12-23 18:03:26 -05:00
Ray Chason
59c6425f4c
Deal with FreeDOS bugs when building pdcurses.a
2019-11-04 22:26:47 -05:00
Ray Chason
d5104c622f
Use faster method to write to VGA
2019-09-12 23:04:15 -04:00
Ray Chason
c13eed7369
Qt4: Hide buttons not matching typed command
...
There are way too many buttons on the extended command window.
Let the user type a letter or two, and hide the buttons that don't
match.
2018-09-10 21:13:32 +03:00
Ray Chason
3479c471dd
Qt on Win32: changes needed for Win32
...
* Fix an include directory
* Use strchr instead of index
* play_usersound conflicts with another function
2018-09-10 21:13:24 +03:00
Ray Chason
7de9266b04
Qt on Win32: add stub for Qt window_procs
2018-09-10 21:13:20 +03:00
Ray Chason
41fdc79b7b
Qt on Win32: resolve conflict over boolean type
2018-09-10 21:13:14 +03:00
Ray Chason
8dbaafbb7b
Ignore Win32 build products
2018-09-10 21:13:10 +03:00
Ray Chason
3fc2373ca2
Add build configuration for Qt 4 and 5
2018-09-10 21:13:05 +03:00
Ray Chason
6894e464d4
Win32: delete the o directory only if it exists
2018-09-10 21:13:00 +03:00
Ray Chason
5be0044c62
Add -lgdi32 to conlibs, needed to link
2018-09-10 21:12:56 +03:00
Ray Chason
cdfb9cb744
Linux and Mac: ignore .moc files created in src
2018-09-10 21:12:53 +03:00
Ray Chason
e7a3390d74
Add build products to make spotless
...
Win32 Makefile.gcc now cleans up all build products except the binary
directory.
2018-09-10 21:12:47 +03:00
Ray Chason
5e04a6e6cb
New hints file for Qt 5 on Mac OS X
2018-09-10 21:12:17 +03:00
Ray Chason
08ef5ff99f
Provide Qt 5 configuration on Linux
...
* CXX specifies -std=gnu++11
* WINQT5LIB variable added
* Hints file can specify CXX and MOC
2018-09-09 18:10:20 +03:00
Ray Chason
bd5743f758
MS-DOS does not use getreturn_enabled
2018-05-23 21:44:42 -04:00
Ray Chason
2357cb3fc2
Work around quirky FreeDOS behavior
2018-05-23 21:44:20 -04:00