MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / LBackend_TableRowColor

Function LBackend_TableRowColor

src/LBackend.c:983–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983static BitmapCol LBackend_TableRowColor(struct LTable* w, int row) {
984 struct ServerInfo* entry = row < w->rowsCount ? LTable_Get(row) : NULL;
985 cc_bool selected = entry && String_Equals(&entry->hash, w->selectedHash);
986 cc_bool featured = entry && entry->featured;
987
988 return LTable_RowColor(row, selected, featured);
989}
990
991/* Draws background behind each row in the table */
992static void LTable_DrawRowsBackground(struct LTable* w) {

Callers 1

Calls 2

String_EqualsFunction · 0.85
LTable_RowColorFunction · 0.85

Tested by

no test coverage detected