Steve Checkoway
0e366eef75
Fix compile and warnings.
2005-12-29 11:36:20 +00:00
Steve Checkoway
bc22d83f6f
Cleanup.
2005-12-29 11:35:52 +00:00
Steve Checkoway
9d4719c112
Fix crash if Data/splash.png is not found.
2005-12-29 11:35:10 +00:00
Steve Checkoway
7dd0014caa
Section 3.6.2 clause 2 of the c++ standard basically says we cannot rely on the order of initialization.
2005-12-29 11:15:28 +00:00
Steve Checkoway
811e488bb5
Try _very_ hard to ensure that y is a compile time constant by forcing gcc to inline. For some reason if I have __attribute__((always_inline)) without the inline keyword, it does not inline correctly.
2005-12-29 10:00:43 +00:00
Glenn Maynard
c580fc15ef
remove old comment; EnterPerspectiveMode is gone
2005-12-29 09:20:40 +00:00
Glenn Maynard
9c5863a751
unneeded
2005-12-29 09:16:33 +00:00
Glenn Maynard
02cdc08486
Nothing else uses these, and we don't even bother exporting them
...
to Lua. Remove them to eliminate an SDimensions.h dependency.
2005-12-29 08:49:54 +00:00
Glenn Maynard
bbaf375a33
forgot this was stored here. Not sure if it's better for the AR to be stored here, or if ScreenDimensions::GetScreenAspectRatio should be moved to a RDisplay. After all, the dimensions of the screen (the AR preference) are RageDisplay's domain, not the theme's (just as GetThemeAspectRatio belongs to the high-level theme code and not RDisplay).
2005-12-29 08:44:51 +00:00
Glenn Maynard
6855fa9b2c
yuck, need GetScreenAspectRatio for ASPECT_AUTO. better approach coming ...
2005-12-29 08:41:18 +00:00
Glenn Maynard
933669684b
reduce use of ScreenDimensions in RDisplay
2005-12-29 08:35:04 +00:00
Glenn Maynard
c7a3cbc5fb
missed a piece
2005-12-29 08:14:52 +00:00
Glenn Maynard
580ff0716a
Centering is a user preference, to adjust the screen, not a theme
...
setting. It's usually tied to the screen resolution (will usually
need readjustment anyway if the resolution changes). Treat the
values as pixels, as if we were using glViewport to do this.
(Reduces dependencies on ScreenDimensions.h, and we don't need
to worry about calling ChangeCentering when the theme changes.)
2005-12-29 08:12:51 +00:00
Glenn Maynard
336e3be92b
call base (even though it happens to be a no-op right now)
2005-12-29 07:45:06 +00:00
Glenn Maynard
eb50b6fc7e
unneeded
2005-12-29 07:44:38 +00:00
Glenn Maynard
1f58f31a51
clarify
2005-12-29 07:35:23 +00:00
Chris Danford
c7d769829a
add ThemeManager to smtools
2005-12-29 05:52:50 +00:00
Glenn Maynard
b704036996
refactor so StringToDeviceButton doesn't iterate over every button
2005-12-29 05:10:11 +00:00
Chris Danford
cdc7df02b1
finish language im/exporting
2005-12-29 04:37:52 +00:00
Glenn Maynard
8d970cc4ea
add SetOneUnthemedChoice for common case
...
don't theme dynamic choices and already-themed choices
2005-12-29 04:19:22 +00:00
Glenn Maynard
a13cbcaafb
simplify edit_stop
2005-12-29 04:01:54 +00:00
Glenn Maynard
e0c221396d
comment
2005-12-29 03:33:00 +00:00
Glenn Maynard
242e8b65fd
merge undo handling
2005-12-29 03:29:20 +00:00
Glenn Maynard
9f5b83f65c
Rename SM_Success -> SM_SaveSuccessful and SM_Failure to SM_SaveFailed
...
in the editor, to avoid confusion with the SM_Success message sent when
Prompt pops itself.
Merge completion prompts in home and full mode. Only show a full
ScreenPrompt if we're about to exit the screen.
2005-12-29 03:27:21 +00:00
Glenn Maynard
6657db528d
old comment
2005-12-29 03:05:07 +00:00
Glenn Maynard
a373237962
simplify
2005-12-29 03:00:33 +00:00
Glenn Maynard
72bb71d50e
use SM_Success; don't duplicate it
2005-12-29 02:59:23 +00:00
Chris Danford
3eb451f76f
fix compile
2005-12-29 02:42:29 +00:00
Chris Danford
df984aef76
working on localization tool
2005-12-29 02:40:09 +00:00
Chris Danford
2d7ae984e2
fix VC6 compile (braindead std::string?)
2005-12-29 02:36:46 +00:00
Glenn Maynard
18d29783ba
compile fix
2005-12-29 02:34:27 +00:00
Glenn Maynard
ae17e2ffe3
simplify
2005-12-29 02:24:12 +00:00
Glenn Maynard
5303e7aab9
This isn't right: it'll add a period to the end, even when there was no
...
extension at all. Remove it; it wasn't meant to be committed to begin
with.
2005-12-29 02:10:18 +00:00
Steve Checkoway
2985f1a6ec
Fix warnings.
2005-12-29 02:03:14 +00:00
Steve Checkoway
451bb4c396
SetExtension does not modify sName. Also, after calling SetExtension( sName, "" ), the period is removed so if the file name is foo.bar.baz, then calling SetExtension with "" followed by "bur" you end up with foo.bur. Instead, just append "." + sExt.
2005-12-29 02:01:10 +00:00
Glenn Maynard
0e946835b6
filter filenames, so creating an edit named "foo 2/3" doesn't fail when
...
writing
2005-12-29 01:22:23 +00:00
Glenn Maynard
86572cc1f3
add MakeValidFilename
2005-12-29 01:20:33 +00:00
Glenn Maynard
6177fe5884
fixup
2005-12-29 00:42:03 +00:00
Glenn Maynard
983a34dde4
style
2005-12-28 23:34:10 +00:00
Glenn Maynard
b73fe69ff2
style
2005-12-28 23:33:11 +00:00
Glenn Maynard
88fb796c6b
cleanup
2005-12-28 21:08:10 +00:00
Glenn Maynard
c48acf2b16
use enum_add2
2005-12-28 21:05:43 +00:00
Glenn Maynard
71c7380f44
device-neutral
2005-12-28 20:56:49 +00:00
Glenn Maynard
ce93d6be50
fix overlap between keyboard digits and numbered joystick buttons
2005-12-28 20:53:54 +00:00
Glenn Maynard
87dc61af3e
operator< for use in maps
2005-12-28 20:53:42 +00:00
Glenn Maynard
70d67b6e5e
fix slightly excessive memory usage
2005-12-28 20:50:12 +00:00
Glenn Maynard
3193f1b774
fix slow STestInput
2005-12-28 20:41:51 +00:00
Glenn Maynard
4664c25bee
fix excessive memory usage by m_ButtonState
2005-12-28 20:41:24 +00:00
Chris Danford
b42d28af34
add language localization tools
2005-12-28 19:21:08 +00:00
Glenn Maynard
76e78a1bc4
avoid iterating over all buttons
2005-12-28 19:21:01 +00:00