Skip to content
Snippets Groups Projects
Commit fc7c25ad authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Eliminate GDI scaling. It's ugly and I hate it.

Also, fix up window behaviour... allow dragging it larger and smaller,
disable maximize, and don't allow snapping bigger or smaller than
the user area.

Finally, when r2y tables aren't installed, set the aspect ratio to
xsize x ysize so all the aspect "stuff" works properly.

With this, GDI is now the default output mode for Windows.  Auto
order is now:

X11 -> GDI -> SDL -> Win32 Console or Curses -> ANSI

Now that GDI is self-contained, does not require SDL, and runs in
a window, compile as a Windows application to prevent a console
window from opening then closing at startup.  Win32 console mode
now has to rely on AllocConsole(), which opens a new console
window.  This is likely the best choice anyway since ciolib
absolutely destroys your console settings, so that console is even
less useful than the normal windows console after a utility runs.

Maybe for 2.0 I'll do a Wayland and Core Graphics driver too. :D
parent 3f6214d7
No related branches found
No related tags found
No related merge requests found
......@@ -64,11 +64,16 @@ else
NO_X := 1
CIOLIB-MT_CFLAGS += -DDISABLE_X11=1
ifndef WITHOUT_GDI
CIOLIB-MT_LIBS += -lgdi32
CIOLIB-MT_LIBS += -lgdi32 -mwindows
CIOLIB-MT_CFLAGS += -DWITH_GDI
NEED_BITMAP := 1
IS_WINDOWS := 1
endif
ifdef USE_SDL
CIOLIB-MT_LIBS += -lgdi32
ifndef IS_WINDOWS
CIOLIB-MT_LIBS += -mwindows
endif
WITH_SDL := 1
endif
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment