jacob1
36e8f6d900
show confirm dialog for double screen mode in case of false detections
2016-01-31 22:30:39 -05:00
jacob1
4e484ae2a4
compiler fixes, apparently using [] as intended is ambiguous ...
2016-01-26 00:24:14 -05:00
jacob1
b0ce2ee615
only automatically use scale 2 if there is a little more space than required (just in case)
2015-09-01 12:39:58 -04:00
jacob1
9f9fef6cad
Add new function ParseServerReturn, try to properly display all http errors
...
Also fix crash with invalid ptsave link, and fix some cases where it wouldn't ever tell you it errored
2015-08-29 13:14:17 -04:00
jacob1
732e5b8730
fix some very minor memory leaks
2015-06-30 19:06:18 -04:00
Aditya Vaidya
13cc593d13
Fixed most spelling errors in code. 'originaly' is read as 'original Y', so not a typo
2015-05-18 15:16:01 -05:00
jacob1
cee08b2024
On first run, set scale to 2 if screen size is large enough
2015-05-14 23:22:20 -04:00
mniip
4fa02965bf
Clean up the EngineProcess loop
2015-02-04 04:13:51 +03:00
jacob1
b7fe998252
fix mouse coords at startup being 0,0, fix glitch that could make background windows fade completely to black
2015-01-31 14:09:50 -05:00
jacob1
b1a3c404b6
fix platform / sconscript flag specific warnings, --no-warnings no longer defaults to true
2015-01-16 23:39:42 -05:00
jacob1
dce874484a
fix all the gcc warnings in the element files (except one in PSTN) + all the unused variable warnings
2015-01-10 22:43:33 -05:00
jacob1
6eedc7a7a6
new linux icon: 48x48 (really displayed at 44x36) instead of 16x16
...
really it's the same icon, it's also not the best, but the best I could make it look
2015-01-09 22:40:48 -05:00
jacksonmj
236ff08da9
Fix some problems noted in http://www.viva64.com/en/b/0298/
...
I've left some of the less important items, like SearchView.cpp "'then' statement is equivalent to the 'else' statement", and RequestBroker::Request::~Request, because I don't feel like spending a few days entirely rewriting those files at the moment (which is what I'd end up doing if I started fixing minor problems and refactoring...)
GameSave::readOPS - not changed. At some point we may have to move to a larger type for element IDs (probably two or four bytes), but PT_NUM isn't likely to be raised to the maximum value of that type immediately, so this check will be needed then. There should be an elements[partsData[i]].Enabled check in there too, but it might be a bit difficult - I'm not sure how to access a Simulation object from GameSave::readOPS...
Notes on changes:
Graphics::textsize, Element_FRZW::Element_FRZW - typos
Button::Draw - the extra case was originally used to invert the icon (draw it in black instead of in white) when the button was clicked. However, the icon colour is now automatically set depending on the background colour. (Note similar conditions "if(Enabled) { if(isButtonDown || (isTogglable && toggle)) " near the start of the function - same logic but in a different place, setting icon colour indirectly).
Simulation::transform_save - unused redundant function, everything uses GameSave::Transform which does much the same thing.
PreviewView::NotifySaveChanged - should be height==YRES/2, it's checking whether the preview image is the correct size, and resizing it if it isn't.
Element_FWRK::update - no idea why that line was there, even though it was my commit that originally added it...
2014-12-25 17:09:35 +00:00
jacob1
6463d04f6c
fix a few of the most spammy warnings (there are still hundreds of warnings though)
...
TODO: actually fix all the warnings
2014-10-23 00:42:13 -04:00
jacob1
89eb6bbd03
fix small ClipboardPush error that shouldn't ever happen
2014-07-04 19:16:38 -04:00
jacob1
6749c2547f
New SConscript (hopefully better)
...
Fixes a lot of bugs, also almost all options are no longer needed and are just auto-detected
2014-06-08 19:33:58 -04:00
Simon Robertshaw
197a70c2e6
Fix Clipboard for renderer build, ensure MacOS and Windows clipboard funcs return std::string
2014-03-16 11:35:53 +00:00
jacksonmj
c6d6011337
An ugly fix for numpad, since it seems event.key.keysym.mod isn't entirely reliable for some unknown reason
...
Partial revert of 7ce9907f82
2014-03-12 15:05:54 +00:00
jacksonmj
1ca63b3813
Add more key definitions
2014-03-12 15:04:16 +00:00
jacksonmj
a1515b3d5e
Shift key for numpad
2014-03-12 00:54:52 +00:00
jacob1
7ce9907f82
fix textbox key repeat issue, fix numpad issue (in two ways)
2014-03-11 12:53:42 -04:00
mniip
43bff37279
fix numpad behavior: movement keys are no longer triggered with numlock on
2014-02-27 20:39:16 +04:00
mniip
55284e6313
Fix most of clipboard-related memory leaks and potential crashes; Fixes jacob#23
2014-02-25 18:44:44 +04:00
mniip
fdfaa3a29b
add defines for window resolution
...
--amend
2013-12-29 20:12:50 +04:00
jacob1
138cb4d757
exception bluescreens print what the exception was, some (probably unnecessary) fixes to fusion that were never merged in, and probably a compiling fix
2013-12-03 22:05:35 -05:00
Simon Robertshaw
a32af1679a
Fix Mac OSX readUserPreferences missing off last char of pref data, add clipboard implementations for Mac OS X
2013-11-19 21:23:04 +00:00
mniip
9183fa1755
apparently Ximon hates const; a lot;
...
added a bunch of const everywhere, had to modify a few functions to be const-compliant
2013-10-30 04:38:13 +04:00
mniip
5d3520d18c
fix copy and paste in the same tpt window on SDL/Linux/X11
2013-10-25 00:46:41 +04:00
jacob1
332aa25bf6
save pavg[] in saves, for VIRS, PIPE, and STOR
2013-09-11 20:41:43 -04:00
mniip
8a27363c76
implement X11 clipboard pull
2013-08-29 00:57:08 +04:00
jacob1
5518a6bcd6
fix right modifier keys
2013-07-27 11:21:42 -04:00
jacob1
cc887995c0
fix openGL compiling (most likely), fixes #146
2013-07-17 18:20:50 -04:00
jacob1
3203e597b9
fix piston bugs, fix crashes, don't use bluescreens when compiled with debug mode in visual studio
2013-07-10 16:59:10 -04:00
jacob1
60b1bf5066
forgot to push this commit, SDL should only be included in 1 type of way
2013-06-22 09:36:50 -04:00
jacob1
1588226120
move frameStart to right after the fps is limited (counts everything, including mouse/key functions now)
2013-05-21 23:23:57 -04:00
cracker64
4e9ee3a3a3
Fix incorrect FPS counter, need to count blit too.
...
2x scale gets a massive *real* fps boost, the fps lied before.
2013-05-21 23:05:27 -04:00
mniip
3979395e65
reenable sighandlers for winderp
2013-05-19 10:02:42 +04:00
mniip
3a640fee3f
some more compiling fixes
2013-05-17 18:32:41 +04:00
mniip
9f33cbf79e
well, fuck you too, simon
2013-05-05 08:49:36 +04:00
Simon Robertshaw
8ef266c08e
Fix compiling with new BSOD in debug mode
2013-05-04 22:41:08 +01:00
Simon Robertshaw
2d8c5a7747
TPT Blue screen of death - try its best to catch some signals (SIGSEGV) and unhandled exception in the game loop
2013-05-04 21:39:43 +01:00
Simon Robertshaw
1575d93d48
Fix compilation issues on Windows with Window Position Loader
2013-05-04 15:00:45 +01:00
jacob1
d4391cc19e
set window position before displaying it
2013-05-03 19:11:44 -04:00
mmbob
df14a77124
LoadWindowPosition has a better default position
...
LoadWindowPosition now positions the window on the nearest monitor if
the window is not inside a monitor.
2013-05-02 13:00:13 -04:00
mmbob
63050715ee
Replace __ImageBase. Save + load window position.
...
Instead of using the __ImageBase global variable, use the
GetModuleHandle(NULL) function to get the exe's HMODULE/HINSTANCE.
Save the window position when the game is closed and restore it when it
is opened. Defaults to being centered on the desktop.
2013-04-22 13:04:43 -04:00
Simon Robertshaw
9abe51526c
Move all GUI source files into gui/
2013-03-22 14:14:17 +00:00
jacob1
01cd146ee9
fix mac compiling, fix renderer, fix other minor compiling issues
2013-02-14 23:31:31 -05:00
jacob1
b493788b26
fix missing #ifdef statement breaking compiling when not on linux
2013-01-19 11:46:21 -05:00
jacob1
ded94b475d
move clipboard functions out of misc.cpp without creating errors
2013-01-18 14:37:24 -05:00
jacob1
73fdfd411c
copy support in linux
2013-01-13 15:24:52 -05:00