Commit graph

49 commits

Author SHA1 Message Date
bilaliscarioth
b5dfbd485f FreeBSD / NetBSD / OpenBSD build fixes, contributed by bilaliscarioth <bilal@iscarioth.org>
see https://github.com/TTimo/GtkRadiant/pull/686 for details
2024-01-14 17:09:00 -07:00
Timothee 'TTimo' Besset
5295644ba4 randomly make one function more robust to overflows - turned out to have no impact on the crash in release, but now that I cleaned it .. 2023-04-23 22:53:46 -05:00
Timothee 'TTimo' Besset
df49d3b4d2 fix release crash 2023-04-23 22:50:22 -05:00
ttimo
8ddd383aaf fix windows build 2023-03-12 22:04:02 -05:00
Timothee 'TTimo' Besset
db3c56505e issue #687 - putting the game install folders under XDG_DATA_HOME 2023-02-19 21:23:57 -06:00
Timothee 'TTimo' Besset
d97f00e0e9 use XDG_STATE_HOME if set for g_strTempPath (.pid file, radiant.log etc.), and related cleanups 2023-02-19 15:35:05 -06:00
ttimo
b9d0a99e84 do not dump the whole qe3bsp.bat, only the actual step lines to avoid confusion 2022-11-24 18:21:51 -06:00
ttimo
6ac09d6f73 Improvements when not using BSP monitoring: check return code and show a clear error message, add a pause at the end of the compile 2022-11-24 18:21:25 -06:00
ttimo
fe696cf3ae replace WinExec with a more modern CreateProcess 2022-11-24 18:20:17 -06:00
ttimo
d441e69264 do not write out the build tools output to junk.txt, it hides the output from the cmd window. in ancient time the editor was loading junk.txt into the console afterwards, but that is long gone now - so that feature was entirely detrimental at this point 2022-11-24 18:20:08 -06:00
Thomas Debesse
38b0faf0da preproc: more unknown architecture error 2017-08-31 00:45:30 +02:00
Thomas Debesse
3e859fb81e preproc: FreeBSD also has LibGL.so 2017-08-30 14:20:01 +00:00
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Pan7
23018aaf4d Replace deprecated GDK_DISPLAY with gdk_x11_get_default_xdisplay 2017-05-28 01:09:56 +02:00
Pan7
626c2ef7cd More gtk i81n 2017-03-16 12:40:56 +01:00
Pan7
bdb1c3abaa Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
Pan7
287a48d77b No Minidump for debug builds 2017-03-06 14:02:48 +01:00
Timothee "TTimo" Besset
c918a29cd0 Merge pull request #352 from Pan7/Sys_FPrintf
Using Sys_FPrintf with SYS_WRN and SYS_ERR
2016-06-11 13:01:13 -05:00
Pan7
5105fc5db8 Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
Pan7
57daf1d8c5 MiniDump for msvc 2016-04-11 22:16:12 +02:00
Pan7
ac95505d93 Increase the max open files to its maximum for msvc 2015-09-26 22:47:39 +02:00
Timothee "TTimo" Besset
69db7ec003 cleanup 2013-09-22 15:53:34 -05:00
Timothee "TTimo" Besset
fcc637e9de code needs fixing to compile/work on windows. put in #ifdef for now 2013-09-14 15:47:10 -05:00
jdolan
9760c8c243 Poor-man's BSP monitoring on UNIX: capture stdout and stderr for legacy BSP tools, and append to the Radiant console. 2013-09-14 10:06:39 -04:00
jdolan
c8fb5b9b5b Remove unused variable. Fix char cast. Finish conditionalizing of splash_screen. Addresses all of the compiler warnings for main.cpp. 2013-07-07 09:22:34 -04:00
jdolan
83333305cd Remove support for --libgl and Q3R_LIBGL. We should instead rely on GDK_GL_LIBGL_PATH, as GtkGlExt does and we must agree with it. 2013-06-29 10:17:08 -04:00
jdolan
78edf4e227 Make Radiant honor GDK_GL_LIBGL_PATH. This way Radiant and GtkGLExt can use the same instance of libGL.dylib. Failure to do this results in unpredictable and wrong behavior from GL. 2013-06-27 16:02:47 -04:00
jdolan
a269593afe Low hanging fruit: bring the number of compiler warnings down from 264 to 33. 2013-05-03 02:57:29 -04:00
Timothee Besset
009acf828b Merge branch 'master' of github.com:TTimo/GtkRadiant 2013-03-29 16:01:31 -05:00
Timothee Besset
5decf64b48 looking for the right GL library? 2013-03-29 16:00:54 -05:00
freemancw
7b38b02742 changed splash screen, swapped from bmp toolbar icons to png 2012-12-18 21:42:33 -05:00
Willi Schinmeyer
561bf99a84 Removed vastly inferior variant of accessing argc/argv in WinMain() 2012-05-17 14:14:34 +02:00
Willi Schinmeyer
54238f9bf1 Suppressing the console window by using WinMain - two variants 2012-05-17 14:11:03 +02:00
Willi Schinmeyer
22de3606a6 If the first argument ends in .map, try to load it as a map (instead of as a project) 2012-05-04 10:02:31 +02:00
Ben Noordhuis
3311b00ae6 fix warning: format not a string literal and no format arguments 2012-03-18 02:13:11 +01:00
Timothee TTimo Besset
830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
rambetter
8d530e8707 - Updated Windows build doc, very slight revision. Changed 37 targets to 38.
- Added plugins/imagehl to list of modules built (both	Windows and Linux).
    Not	really sure what this does, but it's the only module (as defined by
    stuff in plugins/ or contrib/) that exists and isn't currently part of the
    build.
- The code to disable desktop composition in Windows has been moved from start
    of main() to an option in Preferences.  The	pref reads as follows:
    "NVIDIA/Aero bug - disable Windows composition".  It is enabled by default.
- Color themes controlled by "Misc" -> "Colors" -> "Themes" options are now
    saved as soon as you select them.  The color theme is no longer clobbered
    when opening Preferences.
- The ATI broken driver (bug #802) pref has been reworded since it applies to
    Intel cards as well.  Before:
    "ATI cards with broken drivers - bug #802".  After:
    "ATI and Intel cards w/ buggy drivers (disappearing polygons)".


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@479 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-03-03 15:51:44 +00:00
rambetter
3d4ac1ba23 Fixing filters.
I didn't realize they were so broken.
The fix is safe and should not break plugins or anything else.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@437 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-23 09:12:34 +00:00
rambetter
1f11459c84 Turn off desktop compositing in Windows ("Aero") for Radiant.
Otherwise, "hall of mirrors" effect takes place in the OpenGL viewports.
This fix is a real hack.  It's actually borrowed from other Radiants such
as NetRadiant.  I'd like to fix the underlying issue someday so that Aero
can be used with Radiant.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@433 8a3a26a2-13c4-0310-b231-cf6edde360e5
2011-01-22 03:22:21 +00:00
TTimo
dc4e125df2 apply back 335 and 336, will need to update deps and put a zip out
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@343 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-11-26 19:50:08 +00:00
TTimo
449fdbd6b7 revert 335 and 336, breaking the win32 build
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@337 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-11-26 05:58:34 +00:00
rambetter
c1dbb77342 DONE:
- Removed usage of gdk_gl_font_use_pango_font() which is no longer in
  GtkGLExt Git.  Radiant now compiles on Linux From Scratch using current
  versions of software.
- As a side effect to the above, font inconsistency issues (like really
  large intermittent font in GL views) are gone.  Font looks better too.
- Changing algorithm for labeling grid view to be more robust.  Uses new
  functions gtk_glwidget_font_ascent() and gtk_glwidget_font_descent(),	and
  uses locally defined "cushion" variables.
- In xywindow.cpp, changing stepx and stepy based on 40 pixels, not 32.
  When coordinate numbers are very large the labels get too cluttered.
- Added	calls to gtk_gl_init() and gdk_gl_init() in main().  This is
  recommended according	to the GtkGLExt	reference manual.
- Tested all changes on	Ubuntu 10.10 and Debian	5.0 (Lenny).
TODO:
- In glDrawPixels(), instead of using a 32 bit pixel with
  GL_UNSIGNED_INT_8_8_8_8, see if we can use an 8 bit variant where each
  byte defines opacity and the GL current color is used.  In other words, try
  to use the FT_Bitmap directly without conversion.
- Examine every other use of gtk_glwidget_print_string() and
  gtk_glwidget_print_char() to make sure the positions are determined
  accurately.
NOT TODO:
- Decided not to use glBitmap() with display lists because it would
  disallow pretty antialiased fonts.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@335 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-11-16 03:42:28 +00:00
rambetter
fdab9dc6e2 In Radiant main() method, add putenv("LC_NUMERIC=C").
sscanf() and *printf() calls are all over the code, which are
locale-sensitive.  gtk_init() sets all locales.  So if you're in
Germany, your printf()'s will output e.g. "10,5" for ten and
a half.  Reading floating points with sscanf() is also totally broken
in locales such as Germany.  So, we can't really get rid of all the
*scanf()'s and the *printf()'s.  Instead, set LC_NUMERIC to "C".


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@334 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-11-14 01:40:25 +00:00
mattn
04c7eb042d * reactivated WXY_Print function to generate screenshots from the xy window
* removed all the references to the old bugzilla links (deadlinks - no longer useful)

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@289 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-27 15:09:36 +00:00
mattn
3f7eb00721 * added pot file (translation catalog)
* marked more strings as translateable
* deactivated gtk_disable_setlocale and bind the textdomains


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@265 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 08:31:13 +00:00
mattn
e4b1c1a55c * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data)
* add support for translating radiant (just marked three strings, more to come)


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@264 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 07:52:02 +00:00
TTimo
1099f571fe basic architecture for game configuration at runtime. writes out a .game, no sanity checks, does not copy any game pak data
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@192 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-12-25 00:10:45 +00:00
TTimo
33efc90892 more eol-style
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@185 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-11-04 03:51:54 +00:00
TTimo
8037810110 transfer from internal tree r5311 branches/1.4-gpl
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@177 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-09-12 18:54:28 +00:00