Age | Commit message (Collapse) | Author |
|
In the Windows scenario we don't need to allocate any buffers; it's
just a thin wrapper around ShellExecute().
|
|
|
|
Trying to use the cmd.exe built-in has been causing nothing but
troubles, this is the officially supported way to open them.
|
|
Alexandre-Xavier commented in #520 that the 'start' command line to
open help URLs doesn't work. According to this page, 'start' is
actually a cmd.exe built-in and can't be shelled out to directly:
http://www.dwheeler.com/essays/open-files-urls.html
This prepends cmd /c to the 'start' command; hopefully this should
work. It might still be non-ideal if it causes a cmd.exe window to
briefly pop up; in the long term we should probably switch to the
ShellExecute() API function instead.
|
|
These were added ages ago as hacks to make the code compile with SDL2,
back when SDL2 was still in development. They aren't relevant any more
and aren't useful - the actual SDL2 port is proceeding on sdl2-branch.
|
|
|
|
This adds the ability to associate a URL with a window that gives
some extra information about it and the configuration options found
in it.
|
|
This was removed on Windows a while back in favour of a more
conservative approach that examined the system DPI settings, but the
logic still remained for other systems and it really isn't a good
idea. Remove the logic that chooses a large font on large monitors,
and add a TODO comment to add proper Linux font selection in the
future, based on the Gtk+ HiDPI setting.
|
|
The source and destination arguments to memcpy() cannot be overlapping
as this is undefined behavior. In these situations memmove() must be
used instead, and OpenBSD actually throws an error if this is done.
Thanks to ryan-sg for reporting this. This fixes #510.
|
|
|
|
The main loop should exit when the last window closes, but the loop
code was waiting for one event to be received before this took
effect.
This fixes #474. Thanks to Alexandre-Xavier for the report.
|
|
If a Unicode character is not part of the Extended ASCII set that
we can display on screen, don't allow it to be typed (which would
display a backwards question mark). Thanks Alexandre-Xavier for this
suggestion on #229.
|
|
When propagating mouse button presses to widgets within the window,
return from MouseButtonPress() immediately, or we will fall through
to additional code that references the window structure. If the
handler for the widget we clicked on closes the window, this will
have been freed.
This fixed #439. Thanks to DuClare for telling me about this.
|
|
|
|
This change rewrites and simplifies the copyright headers at the top
of all source files:
* Remove "Emacs style mode select" line; this line was included in
the headers for the originally released source files and appears
to be to set the file type for old versions of Emacs. I'm not sure
entirely why it was required but I don't think it is any more.
* Remove "You should have received a copy of..." text from copyright
header. This refers to the old 59 Temple Place address where the
FSF headquarters used to be located and is no longer correct.
Rather than change to the new address, just remove the paragraph
as it is superfluous anyway. This fixes #311.
* Remove ---- separator lines so that the file headers are barer
and more simplified.
|
|
Clicking on a scrollbar should scroll the cursor to that location, but
the logic for it was buggy because of loss of precision when doing an
integer divide. When dividing by bar_max, seek up to the nearest value
so that the cursor always arrives where we clicked.
Thanks to Alexandre-Xavier for reporting this bug. This fixes #359.
|
|
Always call SDL_SetVideoMode with bpp=0 to use the desktop's native
bit depth, and instead draw into an intermediate 8-bit screenbuffer
surface. This ensures that we do not encounter any palette mess-ups
as on some systems true 8-bit screen modes are poorly supported.
|
|
An off-by-one error in the function caused the strings to be truncated
one character too early. Change the return value check so that
negative values are also interpreted as indicating truncation; this is
the behavior of the Win32 API.
|
|
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of
the m_misc.c versions so that the textscreen library does not need a
dependency on the Doom code, and change all textscreen code to use
these instead of unsafe functions. This fixes #372.
|
|
Needed to properly fix bug #369.
|
|
There is no real scan code for the PrintScreen key under DOS, but it
is convenient to be able to bind it as a screenshot key. Define a
"fake" scancode (126) to represent PrintScreen so that it can be
represented as a key binding in configuration files. Also add some
comments/notes to the scantokey[] lookup table.
This fixes #369.
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2742
|
|
scale-ups of the standard res versions of the characters: in addition to
giving a more 'authentic' retro look, this fixes a problem where the
high-frequency dot patterns can cause weird moire effects on some
monitors.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2735
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2731
|
|
font.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2730
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2725
|
|
screen resolution, not the largest fullscreen resolution offered by SDL.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2724
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2717
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2716
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2639
|
|
value to empty string rather than NULL if cancel is pressed in dialog
(thanks Alexandre Xavier).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2638
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2628
|
|
What support exists is for obsolete devices I no longer possess; I've
never been contacted about the port and it's been several years since
I even bothered to build a new version. All the extra overrides are
clutter that can just be removed.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2615
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2602
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2579
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2577
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2576
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2575
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2574
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2573
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2571
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2570
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2553
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2549
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2546
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2543
|
|
Subversion-branch: /branches/v2-branch
Subversion-revision: 2537
|
|
instead. Remove the unused "embedded color code" system from TXT_Puts.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2508
|
|
background color of inactive windows to black, to give better contrast
when viewing many layered windows.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2507
|
|
box.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2494
|