Commit Graph
80 Commits
Author SHA1 Message Date
sukibabyandteejusb 659cd549a2 Remove std prefix from uint types
std::uint*  ->  uint*
2024-10-05 19:25:41 -07:00
sukibabyandteejusb abf89ec2b1 Replace SAFE_DELETE / SAFE_DELETE_ARRAY macros
SAFE_DELETE -> RageUtil::SafeDelete
SAFE_DELETE_ARRAY -> RageUtil::SafeDeleteArray

Update JsonUtil.h to include RageUtil.h - MSVC doesn't need it included for some reason, but GCC and XCode does.
2024-09-30 15:13:32 -07:00
sukibabyandteejusb 0447d9ae58 Consistency in Windows ifdefs/windows.h includes
Changing all defined(_WINDOWS) to defined(_WIN32)

Defining WIN32_LEAN_AND_MEAN in all files except those in Archutils/Win32
2024-06-24 15:48:05 -07:00
Martin Natano bacecae1f7 Decouple <vector> 2023-04-21 22:13:41 +02:00
Martin Natano aa87f85eef Decouple <cstdint> 2023-04-21 22:13:41 +02:00
Martin Natano b68ca517e6 Clean up math functions
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include

e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Michael SundqvistandMartin Natano 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
Martin Natano 3eb239ad3b Replace deprecated macOS APIs with modern equivalents 2022-06-05 12:04:37 +02:00
Martin Natano 15b77ee278 Update documentation 2022-05-28 11:21:13 +02:00
Martin Natanoandteejusb e3347276b5 Build LoadingWindow_Gtk as an object module
CMake object modules have the advantage of allowing to set additional
compile flags for the involved files, but it's linked into the main
binary with the rest of the object files.

This removes GtkModule.so and the dynamic loading code that goes with
it.
2022-03-31 12:06:18 -07:00
Seán de BúrcaandMartin Kröning 6649a116ed Update gtk+ LoadingWindow to use gtk3 2020-06-21 23:31:02 +02:00
PrcuvuandGitHub 44b76446bb Merge branch '5_1-new' into win64 2019-10-06 00:55:50 +08:00
Prcuvu 4026d41c16 More Windows API type inconsistency fix 2019-10-03 09:33:27 +08:00
Prcuvu 4f864911fc Use SetClassLongPtr compatible for both Windows x86 and x64 2019-10-01 14:14:38 +08:00
Prcuvu e5321deed4 Fix DLGPROC prototype 2019-10-01 14:10:56 +08:00
RhythmLunatic 91c31431e8 back to DOS line endings 2019-09-21 13:48:13 -05:00
RhythmLunatic deab68b012 Back to C++ 11 2019-08-13 23:47:59 -05:00
RhythmLunatic 0a9718374b support any size splash on linux 2019-08-13 23:43:35 -05:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
TatshandColby Klein b8a79cd0f6 Allow linking against system libraries for almost everything (#1790) 2019-02-16 08:32:52 -08:00
TatshandColby Klein d395028bd4 Mac fixes (#1776)
* macOS build fixes (#1773)

* macOS build fixes

Add missing headers
Threads_Pthreads: do not call pthread_setname_np() on macOS as it does not do
the same as on Linux
DebugStr() -> os_log()

* Make the project build with Makefiles on macOS

* Fix getting modifier key state on Mac (#1774)

We really need to clean up all Carbon calls here (many will go away when the
project switches to SDL2 for all platforms)

* Fix Xcode build; bump minimum version of macOS (#1775)

* Build fixes for the "Unix Makefiles" generator
Pass CMAKE_BUILD_TYPE to the external projects
* Fix indent
2018-12-31 19:28:59 -08:00
Dan Guzek 40f1554724 fix Loading Window splash image for OS X
This commit allows OS X users to enjoy their current theme's custom splash graphic if it is available at ./Graphics/Common splash.png
I have been wanting to fix this for a fairly long time.

My fix is probably not the cleanest or proper way to do this.  StepMania.cpp already looks up the current theme's "Common splash.png" and passes it off to the arch-appropriate LoadingWindow as a RageSurface.  This fix repeats the lookup in LoadingWindow_MacOSX.mm, and loads the splash image into a Ragefile which is easily loaded into an NSImage.

Still, my fix does work, and if you actually know how to work with a Ragesurface and can help out here, I'll give you a cookie. :)
2015-05-15 08:28:34 -04:00
Ben "root" Anderson 32a25023d3 Die early if CreateDialog fails 2013-10-29 15:51:47 -05:00
Ben "root" Anderson dfb758d35a Noting an observation 2013-10-25 04:11:45 -05:00
Jason Felds 07b9fb6da5 The big NULL replacement party part 6.
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds 28e5148dec The big NULL replacement party part 5.
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds a3f37dc2b4 The big NULL replacement party part 3.
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds ba59dd1656 The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds 9f24627bf9 The big NULL replacement party part 1.
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.

And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
phantom ec69c7769b More Windows loading. 2013-01-02 17:46:21 +01:00
phantom 716d62de10 Fix Gtk icon. 2013-01-02 10:59:38 +01:00
phantom d7cdc02db3 Fix windows? 2013-01-01 18:14:14 +01:00
phantom 5fa1e3d2a0 Splash should show up properly now. 2013-01-01 17:40:29 +01:00
Jason Felds a15cbc431d War on -Werror, part 14: More hodgepodge. 2012-12-27 12:45:04 -05:00
AJ Kelly db0fc91d8b the rest of the GTK splash.png fix form djpohly 2012-06-14 14:54:20 -05:00
AJ Kelly ea0a854065 [LoadingWindow_Gtk] Actually resolve the path to the Splash file. [djpohly] 2012-05-17 12:08:05 -05:00
AJ Kelly e0a8bc81b0 update comment 2012-03-20 17:11:12 -05:00
Colby Klein 195361e94a Add padding to the loading window progress bar on OS X. 2011-12-20 00:40:31 -08:00
Thai Pangsakulyanont f119c8cead add Paint() to SetProgress()
so that Windows does not think that the application is not responding.
2011-11-17 14:24:48 +07:00
ZipFile 5ac274edf6 Stop resizing. 2011-10-13 03:45:03 +02:00
ZipFile 8aab0d7f78 Added fallbak code to build with old ffmpeg (0.6.1). Centered gtk loading
window.
2011-10-09 05:46:50 +02:00
AJ Kelly 8d528625de [LoadingWindow_Win32] Make the StepMania window gain focus after the loading window closes. Fixes issue 424. 2011-09-22 20:19:27 -05:00
AJ Kelly 89d27a656e uncomment splash code on gtk loadingwindow; still doesn't work 2011-08-23 22:09:30 -05:00
AJ Kelly 38da01759d fix moonlight crashing on Linux by disabling buggy icon set code 2011-08-23 14:50:25 -05:00
AJ Kelly 47390a22bf 32->8 to shut up error in the beginning 2011-08-23 09:28:36 -05:00
AJ Kelly c7ac0b4466 more work on the Linux stuff, though nothing's working yet 2011-08-22 17:23:09 -05:00
AJ Kelly e2ab3d6493 various Linux updates, including making the default size of the splash window 512x96. 2011-08-22 15:50:56 -05:00
AJ Kelly b9e53b575b more pedantic crap 2011-08-17 16:28:58 -05:00
Mark Cannon e1a447cc36 revert henke's loadingwindow "improvements"; if you're reading this, henke, you do *NOT* sacrifice readability for misguided optimization, and you do *NOT* use a globally externed variable for something with a useful lifetime of part of one function 2011-08-06 21:33:49 +00:00
Jason Felds 84266760a5 Attempt to restore LoadingWindow to pre-merge. 2011-07-30 14:23:54 -04:00