mirror of https://github.com/buggins/dlangui.git
fix Tetris example build on dmd 2.0.67
This commit is contained in:
parent
fc479a1cfa
commit
d7ecdc4417
|
@ -69,7 +69,11 @@ struct Figure {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// All shapes
|
/// All shapes
|
||||||
const Figure[7] FIGURES = [
|
__gshared const Figure[7] FIGURES;
|
||||||
|
|
||||||
|
// workaround for dmd 2.0.67 - move initialization to static this
|
||||||
|
__gshared static this() {
|
||||||
|
FIGURES = [
|
||||||
// FIGURE1 ===========================================
|
// FIGURE1 ===========================================
|
||||||
// ## ####
|
// ## ####
|
||||||
// 00## 00##
|
// 00## 00##
|
||||||
|
@ -128,6 +132,7 @@ const Figure[7] FIGURES = [
|
||||||
FigureShape([1, 0], [-1,0], [ 0, 1]),
|
FigureShape([1, 0], [-1,0], [ 0, 1]),
|
||||||
FigureShape([0, 1], [0,-1], [-1, 0])]),
|
FigureShape([0, 1], [0,-1], [-1, 0])]),
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
/// colors for different figure types
|
/// colors for different figure types
|
||||||
const uint[7] _figureColors = [0xC00000, 0x80A000, 0xA00080, 0x0000C0, 0x800020, 0x408000, 0x204000];
|
const uint[7] _figureColors = [0xC00000, 0x80A000, 0xA00080, 0x0000C0, 0x800020, 0x408000, 0x204000];
|
||||||
|
|
Loading…
Reference in New Issue