25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
};
});
}
int selh = 0;
bool selset = false;
#define loopselxy(b) \
{ \
makeundo(); \
loop(x, sel->xs) loop(y, sel->ys) \
{ \
struct sqr *s = S(sel->x + x, sel->y + y); \
b; \
} \
remip(sel, 0); \
}
int cx, cy, ch;
int curedittex[] = { -1, -1, -1 };
bool dragging = false;
|
|
|
|
|
|
|
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
};
});
}
int selh = 0;
bool selset = false;
#define loopselxy(b) \
{ \
makeundo(); \
loop(x, sel->xs) loop(y, sel->ys) \
{ \
struct sqr *s = S(sel->x + x, sel->y + y); \
b; \
} \
remip(sel, 0); \
}
int cx, cy, ch;
int curedittex[] = { -1, -1, -1 };
bool dragging = false;
|
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
|
}
}
void
makeundo()
{
if (undos == nil)
undos =
[[OFMutableData alloc] initWithItemSize:sizeof(struct block *)];
struct block *copy = blockcopy(&sel);
[undos addItem:©];
pruneundos(undomegs << 20);
}
void
|
|
|
|
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
|
}
}
void
makeundo()
{
if (undos == nil)
undos = [[OFMutableData alloc]
initWithItemSize:sizeof(struct block *)];
struct block *copy = blockcopy(&sel);
[undos addItem:©];
pruneundos(undomegs << 20);
}
void
|