Commit Graph

36 Commits

Author SHA1 Message Date
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Flameshadowxeroshin e92c8f80a3 support for distance field fonts 2017-10-02 17:00:11 -05:00
Kyzentun Keeslala 55e161336a Added lua bindings for playing sounds in SCREENMAN. Added input redirection functions to SCREENMAN for disabling non-lua screen input processing. Added OF_FALSE, OV_EOF, and OV_HOLE to error string list in RageSound for more understandable messages. Made sure RageSound doesn't delete null pointers. Updated changelog. 2016-02-03 13:05:23 -07:00
Kyzentun 7be1a35d77 Fixed IniFile::RenameKey by adding RenameChildInByName to XmlFile. Only font loading uses RenameKey. 2015-03-15 13:23:23 -06:00
Kyzentun 50ab63b573 Changed asserts and exceptions in Font to non-fatal error messages. Changed BitmapText::CropToWidth to ask the font how many glyphs will fit instead of removing one glyph at a time. 2015-02-27 17:38:30 -07:00
Jason Felds f5c877cbb6 Replace StringToInt with the std version.
Again, RageUtil isn't the right home.
2013-05-04 11:59:25 -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 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
Shenjoku aac47c9777 Fix potential leak in Font 2013-04-29 16:29:55 -04:00
Devin J. Pohly feb919f0bf Revert memory leak commits
5f7001e: "Added a new branch"
01456ed: "Fixed a lot of memory leaks"
dac4493: "Fixed all remaining memory leaks that I could figure out"
0792db7: "Removed the smnew macro and the call to _CrtSetDbgFlag()"

Some of these caused destructor-time problems due to static initialization
order fiasco and related issues.  Notably, the program would no longer exit on
OSX and had to be killed.

There were probably legitimate fixes in here, but since these are monolithic
commits it's too much work to extract them now.  Let's reapply them
individually and in the forward direction.
2013-04-27 00:05:14 -04:00
Shenjoku 0792db752a Removed the smnew macro and the call to _CrtSetDbgFlag() to get ready for
merging with the main branch.
2013-04-19 20:34:11 -07:00
Shenjoku 01456ed0b9 Fixed a lot of memory leaks caused by static globals never getting
deleted and some other objects not getting deleted properly due to missing
destructors.
2013-04-18 21:17:57 -07:00
Shenjoku 5f7001ef0a Added a new branch that implements support for outputting all memory leaks to
the debug output for the Debug and FastDebug project configurations. This
requires replacing all instances of new with a macro, smnew, that defines a
special form of new which outputs file and line number information along with
the memory leak details. This makes finding memory leaks much easier since you
can just double-click the leak in the output window and it will take you to the
line that caused it.
2013-04-17 20:42:29 -07:00
Colby Klein f94302c02a Fix line endings. 2012-12-27 19:01:26 -08:00
Jason Felds a15cbc431d War on -Werror, part 14: More hodgepodge. 2012-12-27 12:45:04 -05:00
Colby Klein d72bf7ecbb Fix an SMO crash when a song is using non-roman song titles. Taken from OITG,
it's definitely not the _right_ fix, but it'll do the job.
2012-12-17 01:07:24 -08:00
AJ Kelly 862e19710d revert a change I had made a while ago since I was not aware this was causing stroked fonts to look odd. 2012-02-11 16:27:45 -06:00
Jason Felds da51e26d07 Standardize conversion processes.
Too many arguments for or against the many methods:
stick to one inside a common function.

This commit will force recompilation of many files.
2011-05-11 15:58:31 -04:00
AJ Kelly 04f8305a57 [Font] remove hack that makes assumptions 2011-04-25 14:14:49 -05:00
Jason Felds 04300bb48c Try to respect hungarian notation better. 2011-03-21 02:10:10 -04:00
Jason Felds 25ed1ef8ea Finish the job here before leak testing.
Now...how to remove the leak...?
2011-03-21 01:40:39 -04:00
Jason Felds 22b7b34897 More effective fixes.
Course playing still results in it playing fine.
2011-03-19 18:26:55 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
AJ Kelly ad75520446 revert change that disallowed reloading of fonts via F2 2011-03-15 15:08:21 -05:00
Jason Felds d1272b001c Another batch of these.
I think I need to look into adding a feature soon.
Either that, or take a minor break.
2011-03-14 21:42:07 -04:00
Jason Felds 81ccc7daba Quickly variables! Into the magic mirror! 2011-03-14 03:32:07 -04:00
AJ Kelly 8283a5bdda font reloading for real this time 2011-02-17 15:00:58 -06:00
AJ Kelly 69491c7ccb damnit I wanted to be able to refresh font settings and now I can again. 2011-02-17 14:42:40 -06:00
AJ Kelly d2bdb45239 having font refs start at 1 stops seems to stop crashes from happening in the 5th mix theme. 2011-01-08 03:12:52 -06:00
AJ Kelly 884493358f small cleanup 2010-12-28 13:45:25 -06:00
AJ Kelly 0964d8dc9a SM5SVN 9419e1e: Only unload fonts if not used by the next screen. [shakesoda] 2010-12-21 13:26:09 -06:00
AJ Kelly 2be759893a small comment/cleanup 2010-06-23 11:19:49 -05:00
AJ Kelly 642f4b107c the various changes that I forgot to commit (cleanup and so forth) into hg,
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00