Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Nov 19, 2023
1 parent 6747307 commit bd00e9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/luamacro/luafar/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,8 +1394,8 @@ int GetFarColor(lua_State *L, int pos, struct FarColor* Color)
Color->Flags = CheckFlagsFromTable(L, -1, "Flags");
Color->Foreground.ForegroundColor = CAST(COLORREF, GetOptNumFromTable(L, "ForegroundColor", 0));
Color->Background.BackgroundColor = CAST(COLORREF, GetOptNumFromTable(L, "BackgroundColor", 0));
Color->Reserved[0] = 0;
Color->Reserved[1] = 0;
Color->Underline.UnderlineColor = 0;
Color->Reserved = 0;
lua_pop(L, 1);
return 1;
}
Expand All @@ -1405,8 +1405,8 @@ int GetFarColor(lua_State *L, int pos, struct FarColor* Color)
Color->Flags = FCF_4BITMASK;
Color->Foreground.ForegroundColor = (num & 0x0F) | ALPHAMASK;
Color->Background.BackgroundColor = ((num>>4) & 0x0F) | ALPHAMASK;
Color->Reserved[0] = 0;
Color->Reserved[1] = 0;
Color->Underline.UnderlineColor = 0;
Color->Reserved = 0;
return 1;
}
return 0;
Expand Down

0 comments on commit bd00e9c

Please sign in to comment.