mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-02-28 21:29:35 +00:00
refactoring else if
This commit is contained in:
parent
02ce514399
commit
59f116258a
@ -520,8 +520,7 @@ LOOP:
|
||||
display,
|
||||
&xevent);
|
||||
}
|
||||
else
|
||||
if (!XCheckMaskEvent(
|
||||
else if (!XCheckMaskEvent(
|
||||
display,
|
||||
KeyPressMask|KeyReleaseMask,
|
||||
&xevent))
|
||||
@ -685,13 +684,11 @@ void video_init() {
|
||||
{
|
||||
red_shift = shift;
|
||||
}
|
||||
else
|
||||
if ((((uint32_t)visualinfo.green_mask>>shift) & 0xff) == (uint32_t)0xff)
|
||||
else if ((((uint32_t)visualinfo.green_mask>>shift) & 0xff) == (uint32_t)0xff)
|
||||
{
|
||||
green_shift = shift;
|
||||
}
|
||||
else
|
||||
if ((((uint32_t)visualinfo.blue_mask >>shift) & 0xff) == (uint32_t)0xff)
|
||||
else if ((((uint32_t)visualinfo.blue_mask >>shift) & 0xff) == (uint32_t)0xff)
|
||||
{
|
||||
blue_shift = shift;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user