Add missing levels reversing
This commit is contained in:
parent
f0cfb703b8
commit
82b6651ab7
1 changed files with 4 additions and 1 deletions
|
@ -1131,12 +1131,15 @@ grub_err_bidi_logical_to_visual (grub_uint32_t *logical,
|
||||||
void revert (unsigned start, unsigned end)
|
void revert (unsigned start, unsigned end)
|
||||||
{
|
{
|
||||||
grub_uint32_t t;
|
grub_uint32_t t;
|
||||||
unsigned k;
|
unsigned k, tl;
|
||||||
for (k = 0; k <= (end - start) / 2; k++)
|
for (k = 0; k <= (end - start) / 2; k++)
|
||||||
{
|
{
|
||||||
t = no_markers[start+k];
|
t = no_markers[start+k];
|
||||||
no_markers[start+k] = no_markers[end-k];
|
no_markers[start+k] = no_markers[end-k];
|
||||||
no_markers[end-k] = t;
|
no_markers[end-k] = t;
|
||||||
|
tl = levels[start+k];
|
||||||
|
levels[start+k] = levels[end-k];
|
||||||
|
levels[end-k] = tl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue