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, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0,
0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0,
1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1,
0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0
};
ds_cursimg_t ds_cursimg[dcurs_limit] = {
{
.rect = { 0, 0, 13, 21 },
.image = arrow_img
},
{
.rect = { -6, -10, 7, 11 },
.image = size_ud_img
},
{
.rect = { -10, -6, 11, 7 },
.image = size_lr_img
},
{
.rect = { -7, -7, 8, 8 },
.image = size_uldr_img
},
{
.rect = { -7, -7, 8, 8 },
.image = size_urdl_img
},
{
.rect = { -5, -9, 6, 10 },
.image = ibeam_img
}
};
HelenOS homepage, sources at GitHub