711 Commits

Author SHA1 Message Date
Jonathan Campbell
bde1591609 namespace it 2018-05-30 18:36:40 -07:00
Jonathan Campbell
70da538a09 bitlength constexpr 2018-05-30 18:28:25 -07:00
Jonathan Campbell
a7f9e9239f more 2018-05-30 18:05:04 -07:00
Jonathan Campbell
8e038b07d5 more 2018-05-30 18:03:32 -07:00
Jonathan Campbell
8929cca70b change to negation to shut up VS2017 about integer overflow 2018-05-30 17:18:17 -07:00
Jonathan Campbell
347dd59e2d try this 2018-05-30 17:17:08 -07:00
Jonathan Campbell
de74e69926 take that 2018-05-30 17:15:47 -07:00
Jonathan Campbell
fa73308193 more 2018-05-30 17:06:30 -07:00
Jonathan Campbell
e8e63b3522 more 2018-05-30 16:38:49 -07:00
Jonathan Campbell
929a87b2c0 more 2018-05-30 16:32:49 -07:00
Jonathan Campbell
9448850068 utility test 2018-05-30 16:21:34 -07:00
Jonathan Campbell
9ea867ae70 Move Mac OS X menu setting into the common menu code, instead of assuming the menu at startup 2018-05-29 14:09:26 -07:00
Jonathan Campbell
bf63547e2e cleanup 2018-05-29 13:17:27 -07:00
Jonathan Campbell
fcd0f14524 menu.cpp typedef fixes 2018-05-29 13:02:54 -07:00
Jonathan Campbell
fe7c3068dd Typecast fixes 2018-05-29 12:38:16 -07:00
Jonathan Campbell
7f6bbe7592 VS2017 compiler warning x64 fixup 2018-05-29 11:58:00 -07:00
Jonathan Campbell
0443c3f0e5 self reminder 2018-05-26 18:11:50 -07:00
Aybe
21b354720a Fixed dumb Visual Studio insisting on using tabs. 2018-05-26 20:15:11 +02:00
Aybe
7c34f7a16e 'Show console' was not checked in menu when using '-console' 2018-05-26 19:25:59 +02:00
Jonathan Campbell
33cbd381fe But also hide the cursor in the same case if the mouse button is down 2018-05-25 19:56:20 -07:00
Jonathan Campbell
a5122e3eff Fix cursor to hide if guest is matching, but show if cursor is outside the SDL clip box 2018-05-25 19:54:29 -07:00
Jonathan Campbell
ae112cef96 fixup 2018-05-24 18:39:51 -07:00
Jonathan Campbell
b6672c9d2d make sure the C++ compiler understands SDL_main can throw an exception (VS2017) 2018-05-24 18:35:17 -07:00
Jonathan Campbell
d182d1ca54 Refactor code not to pop items off popup_stack while comparing std::vector iterators 2018-05-24 09:35:07 -07:00
Jonathan Campbell
d30236ff34 more 2018-05-22 20:47:18 -07:00
Jonathan Campbell
e40615d63b more 2018-05-22 20:37:24 -07:00
Jonathan Campbell
9feb9ab342 Fix logo 2018-05-22 19:26:55 -07:00
Jonathan Campbell
a3936ed0cf clang/llvn cleanup 2018-05-22 19:25:02 -07:00
Jonathan Campbell
6b51bed9d4 More code cleanup 2018-05-22 18:40:35 -07:00
Jonathan Campbell
15b19c5e41 cleanup, sdlmain 2018-05-22 16:02:42 -07:00
Jonathan Campbell
3caf4cf21b more 2018-05-22 15:52:12 -07:00
Jonathan Campbell
623ded19c0 unused param, var cleanup 2018-05-22 11:06:02 -07:00
Jonathan Campbell
9fb8e017a1 Explain menus and output=direct3d. Reminder to self that future Windows may break Direct3D9 + GDI rendering ability which the current code relies on for menu output when output=direct3d. 2018-05-22 00:58:27 -07:00
Jonathan Campbell
82f89206d2 Direct3D output: When making the menu popup appear, copy the Direct3D9 backbuffer to the SDL surface so the menu code can properly draw over it using the normal SDL surface code. As long as Windows allows Direct3D Present() and GDI calls to mix, this is fine. 2018-05-21 17:23:01 -07:00
Jonathan Campbell
569e94be21 Direct3D output refresh menu after modeset 2018-05-21 17:03:57 -07:00
Jonathan Campbell
8708cb65d1 Add SDL surface to Direct3D composition function. Draw SDL drawn menu per buffer swap in Direct3D mode, if menu enabled 2018-05-21 17:01:11 -07:00
Jonathan Campbell
164df4d744 try 2018-05-21 15:23:57 -07:00
Jonathan Campbell
10178d39a5 Unused vars, and function ptr to void* typecast warning fixes 2018-05-21 12:11:57 -07:00
Jonathan Campbell
fa42911bc2 Direct3D setup cleanup 2018-05-20 22:57:15 -07:00
Jonathan Campbell
940088dbf5 begin direct3d 2018-05-20 22:46:12 -07:00
Jonathan Campbell
731515fb44 Do not compile GFX_SetupSurfaceScaledOpenGL unless OPENGL is enabled 2018-05-20 20:18:05 -07:00
Jonathan Campbell
e351c9a084 Only update mapper_capmouse IF the menu item exists 2018-05-19 20:31:52 -07:00
Jonathan Campbell
5fbf166ad6 Move menu setup to later in the setup process. Do not assume menu setup unless showmenu=true. 2018-05-19 20:26:35 -07:00
Jonathan Campbell
4ab2bc64bc more 2018-05-19 19:53:16 -07:00
Jonathan Campbell
7264d7f296 SDL2 compile MinGW fix 2018-05-19 14:26:21 -07:00
Jonathan Campbell
3c44b5eb82 Windows SDL 1.x: If not compiled to support Direct3D shaders, do not attempt to read pixelshader= option because it does not exist. This fixes crashes with output=direct3d when compiled with MinGW 2018-05-19 13:19:28 -07:00
Jonathan Campbell
155527adcb Linux/X11: Add Always On Top and make it work 2018-05-19 01:33:52 -07:00
Jonathan Campbell
44c74382bb Windows SDL 1.x: Do it 2018-05-18 21:03:49 -07:00
Jonathan Campbell
f21527a012 Windows SDL 1.x: more 2018-05-18 21:01:06 -07:00
Jonathan Campbell
165917323c Windows SDL 1.x: More 2018-05-18 21:00:14 -07:00