news_gui.c
changeset 1095 b59632d9df1b
parent 935 ae06c883382f
child 1097 196431cb50fe
equal deleted inserted replaced
1094:9a01482df45a 1095:b59632d9df1b
   198 	}
   198 	}
   199 }
   199 }
   200 
   200 
   201 // returns the correct index in the array
   201 // returns the correct index in the array
   202 // (to deal with overflows)
   202 // (to deal with overflows)
   203 byte increaseIndex(byte i)
   203 static byte increaseIndex(byte i)
   204 {
   204 {
   205 	if (i == INVALID_NEWS)
   205 	if (i == INVALID_NEWS)
   206 		return 0;
   206 		return 0;
   207 	i++;
   207 	i++;
   208 	if (i >= MAX_NEWS)
   208 	if (i >= MAX_NEWS)
   449 	if (ReadyForNextItem())
   449 	if (ReadyForNextItem())
   450 		MoveToNexItem();
   450 		MoveToNexItem();
   451 }
   451 }
   452 
   452 
   453 /* Do a forced show of a specific message */
   453 /* Do a forced show of a specific message */
   454 void ShowNewsMessage(byte i)
   454 static void ShowNewsMessage(byte i)
   455 {
   455 {
   456 	if (_total_news == 0) return;
   456 	if (_total_news == 0) return;
   457 
   457 
   458 	// Delete the news window
   458 	// Delete the news window
   459 	DeleteWindowById(WC_NEWS_WINDOW, 0);
   459 	DeleteWindowById(WC_NEWS_WINDOW, 0);