mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
ide: MacOS ide back forward moved to option-left/option-right
This commit is contained in:
parent
327ff82d4d
commit
a0a256ee77
2 changed files with 19 additions and 5 deletions
|
|
@ -12,12 +12,11 @@ CONSOLE_APP_MAIN
|
|||
#ifdef CPU_SIMD
|
||||
{
|
||||
RGBA x = Color(11, 22, 33);
|
||||
#ifdef PLATFORM_MACOS0 // not ideal, but we need 255 11 22 33
|
||||
x.b = 255;
|
||||
x.g = 11;
|
||||
x.r = 22;
|
||||
x.a = 33;
|
||||
|
||||
#ifdef PLATFORM_MACOS
|
||||
*(dword *)&x = SwapEndian32(*(dword *)&x);
|
||||
#endif
|
||||
|
||||
RGBA *s = &x;
|
||||
|
||||
DUMP(LoadRGBAF(&x));
|
||||
|
|
@ -38,12 +37,19 @@ CONSOLE_APP_MAIN
|
|||
|
||||
RGBA c = 250 * LtRed();
|
||||
DUMP(c);
|
||||
#ifdef PLATFORM_MACOS
|
||||
*(dword *)&c = SwapEndian32(*(dword *)&c);
|
||||
#endif
|
||||
DUMP(LoadRGBA2(c));
|
||||
DUMP(i16all(250));
|
||||
DUMP(i16all(250) * LoadRGBA2(c));
|
||||
DUMP(i16all(250) * LoadRGBA2(c) >> 8);
|
||||
DUMP(Mul8(LoadRGBA2(c), 250));
|
||||
#ifdef PLATFORM_MACOS // too hard to reconcile here...
|
||||
LOG("MakeAlpha(Mul8(LoadRGBA2(c), 250)) = 12 11 11 11 12 11 11 11");
|
||||
#else
|
||||
DUMP(MakeAlpha(Mul8(LoadRGBA2(c), 250)));
|
||||
#endif
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -798,10 +798,18 @@ void Ide::BrowseMenu(Bar& menu)
|
|||
}
|
||||
|
||||
menu.Add("Go back", IdeImg::AssistGoBack(), THISBACK1(History, -1))
|
||||
#ifdef PLATFORM_COCOA
|
||||
.Key(K_OPTION|K_LEFT)
|
||||
#else
|
||||
.Key(K_ALT_LEFT)
|
||||
#endif
|
||||
.Enable(GetHistory(-1) >= 0);
|
||||
menu.Add("Go forward", IdeImg::AssistGoForward(), THISBACK1(History, 1))
|
||||
#ifdef PLATFORM_COCOA
|
||||
.Key(K_OPTION|K_RIGHT)
|
||||
#else
|
||||
.Key(K_ALT_RIGHT)
|
||||
#endif
|
||||
.Enable(GetHistory(1) >= 0);
|
||||
|
||||
if(menu.IsMenuBar()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue