mirror of https://github.com/adamdruppe/arsd.git
catchup
This commit is contained in:
parent
d7830a7ce6
commit
85fc2c8c67
8
color.d
8
color.d
|
@ -1052,12 +1052,12 @@ body {
|
|||
sorted ~= ColorUse(color, count);
|
||||
|
||||
uses = null;
|
||||
version(no_phobos)
|
||||
sorted = sorted.sort;
|
||||
else {
|
||||
//version(no_phobos)
|
||||
//sorted = sorted.sort;
|
||||
//else {
|
||||
import std.algorithm : sort;
|
||||
sort(sorted);
|
||||
}
|
||||
//}
|
||||
|
||||
ubyte[Color] paletteAssignments;
|
||||
foreach(idx, entry; palette)
|
||||
|
|
7
dom.d
7
dom.d
|
@ -7051,6 +7051,13 @@ unittest {
|
|||
}
|
||||
+/
|
||||
|
||||
/+
|
||||
so this currently outputs
|
||||
<span>
|
||||
</span>
|
||||
|
||||
for an empty span. idk if i want that.
|
||||
+/
|
||||
bool allAreInlineHtml(const(Element)[] children) {
|
||||
foreach(child; children) {
|
||||
if(child.nodeType == NodeType.Text && child.nodeValue.strip.length) {
|
||||
|
|
|
@ -115,7 +115,7 @@ class GameHelperBase {
|
|||
/// The virtual digital controllers are best to use if that model fits you because it
|
||||
/// works with several kinds of controllers as well as keyboards.
|
||||
|
||||
JoystickUpdate joysticks[4];
|
||||
JoystickUpdate[4] joysticks;
|
||||
ref JoystickUpdate joystick1() { return joysticks[0]; }
|
||||
|
||||
bool[256] keyboardState;
|
||||
|
@ -143,7 +143,7 @@ void runGame(T : GameHelperBase)(T game, int maxUpdateRate = 20, int maxRedrawRa
|
|||
readJoystickEvents(joystickFds[p]);
|
||||
auto update = getJoystickUpdate(p);
|
||||
game.joysticks[p] = update;
|
||||
} else assert(0);
|
||||
}// else assert(0);
|
||||
|
||||
auto now = MonoTime.currTime;
|
||||
game.update(now - lastUpdate);
|
||||
|
|
|
@ -2876,6 +2876,7 @@ class NotificationAreaIcon : CapableOfHandlingNativeEvent {
|
|||
}
|
||||
|
||||
private void createXWin () {
|
||||
// FIXME: check for MANAGER on root window to catch new/changed tray owners
|
||||
auto trayOwner = getTrayOwner();
|
||||
if(trayOwner == None)
|
||||
throw new Exception("No notification area found");
|
||||
|
@ -3710,7 +3711,7 @@ class PosixFdReader {
|
|||
|
||||
version(with_eventloop) {
|
||||
import arsd.eventloop;
|
||||
addFileEventListeners(fd, &ready);
|
||||
addFileEventListeners(fd, &readyel);
|
||||
} else {
|
||||
enable();
|
||||
}
|
||||
|
@ -3755,6 +3756,11 @@ class PosixFdReader {
|
|||
|
||||
void delegate(int, bool, bool) onReady;
|
||||
|
||||
version(with_eventloop)
|
||||
void readyel() {
|
||||
onReady(fd, true, true);
|
||||
}
|
||||
|
||||
void ready(uint flags) {
|
||||
static import ep = core.sys.linux.epoll;
|
||||
onReady(fd, (flags & ep.EPOLLIN) ? true : false, (flags & ep.EPOLLOUT) ? true : false);
|
||||
|
|
Loading…
Reference in New Issue