ccbs
15 years agoAdded a field in the bigscreen active groups allowing for versus play.
Steinar H. Gunderson [Fri, 4 Mar 2005 22:23:25 +0000 (22:23 +0000)]
Added a field in the bigscreen active groups allowing for versus play.

15 years agoAdded note to TODO
Steinar H. Gunderson [Fri, 4 Mar 2005 22:20:34 +0000 (22:20 +0000)]
Added note to TODO

15 years agoLet each screen get width and height in as a parameter on draw() instead of hardcodin...
Steinar H. Gunderson [Tue, 1 Mar 2005 03:04:18 +0000 (03:04 +0000)]
Let each screen get width and height in as a parameter on draw() instead of hardcoding it to SCREEN_WIDTH * SCREEN_HEIGHT.
This is quite ugly at places, but it seems to work well. This isn't really done for the speed
boost (although fades etc. are quite a lot smoother when the split screen can do all its work
in the native resolution instead of fading and _then_ downscaling), but primarily for the
legibility (ie. let FreeType _understand_ that we are on a smaller screen, so get hinting etc.
right), which seems to have improved by quite a lot (the overall "polish" look is a bit down,
though, probably the autohinter is evil).

19:30-04:00

15 years agoForgot to add the prototype for set_screen_size().
Steinar H. Gunderson [Tue, 1 Mar 2005 02:21:33 +0000 (02:21 +0000)]
Forgot to add the prototype for set_screen_size().

15 years agoLet the font system take in a physical resolution, instead of #define-ing it (quite...
Steinar H. Gunderson [Tue, 1 Mar 2005 02:21:04 +0000 (02:21 +0000)]
Let the font system take in a physical resolution, instead of #define-ing it (quite ugly).

15 years agoSet default resolution to 1024x768.
Steinar H. Gunderson [Tue, 1 Mar 2005 02:14:33 +0000 (02:14 +0000)]
Set default resolution to 1024x768.

15 years agoMake a "logical resolution" (yuck!) of 800x600 for all the screens, and make fonts...
Steinar H. Gunderson [Tue, 1 Mar 2005 02:14:09 +0000 (02:14 +0000)]
Make a "logical resolution" (yuck!) of 800x600 for all the screens, and make fonts.cpp compensate for that.

15 years agoReplace 800x600 width a resolution from a .h file. Lots of positions are still hardco...
Steinar H. Gunderson [Tue, 1 Mar 2005 01:59:31 +0000 (01:59 +0000)]
Replace 800x600 width a resolution from a .h file. Lots of positions are still hardcoded, though.

15 years agoImplement a simple priority system.
Steinar H. Gunderson [Tue, 1 Mar 2005 01:12:51 +0000 (01:12 +0000)]
Implement a simple priority system.
The priority system is used to determine which screen is shown first if two or more screens
have updated information (ie. a group screen is more important than a "today's high scores"
screen, which is in turn more important than "today's most chosen songs", as the latter is
mainly a curiosity).

- Add a get_priority() to GenericScreen, default 0.
- Implement get_priority() for GroupScreen and Top10ScoreScreen, set to 10 and 5 resp.
- Make RotateScreen automatically pick the screen with the highest priority if two or more
  have forced updates.

15 years agoMake sure each screen stays on for a minimum of three seconds (eight if it contains...
Steinar H. Gunderson [Tue, 1 Mar 2005 01:02:20 +0000 (01:02 +0000)]
Make sure each screen stays on for a minimum of three seconds (eight if it contains new info).

15 years agoRename same_fade to fade_to_new_info, plus minor code cleanup.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:57:33 +0000 (00:57 +0000)]
Rename same_fade to fade_to_new_info, plus minor code cleanup.

15 years agoFix "slowly to red" fading (aka same_fade) when we have a forced transition.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:55:12 +0000 (00:55 +0000)]
Fix "slowly to red" fading (aka same_fade) when we have a forced transition.

15 years agoMake the "top 10 scores" and "top 5 chosen songs" screens only say they're updated...
Steinar H. Gunderson [Tue, 1 Mar 2005 00:51:32 +0000 (00:51 +0000)]
Make the "top 10 scores" and "top 5 chosen songs" screens only say they're updated if there is actual new data.

15 years agoFix a bug where all new screens would be cycled on start.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:35:48 +0000 (00:35 +0000)]
Fix a bug where all new screens would be cycled on start.

15 years agoThe auxilliary screen now also shows all finished groups.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:24:48 +0000 (00:24 +0000)]
The auxilliary screen now also shows all finished groups.

15 years agoStop RotateScreen from crashing when it has no subscreens.
Steinar H. Gunderson [Mon, 28 Feb 2005 23:51:42 +0000 (23:51 +0000)]
Stop RotateScreen from crashing when it has no subscreens.

15 years agoAdjusted the columns in the top 5 chosen songs a bit.
Steinar H. Gunderson [Mon, 28 Feb 2005 23:35:58 +0000 (23:35 +0000)]
Adjusted the columns in the top 5 chosen songs a bit.

15 years agoAdded a "top 5 chosen songs this tournament" screen.
Steinar H. Gunderson [Mon, 28 Feb 2005 23:20:25 +0000 (23:20 +0000)]
Added a "top 5 chosen songs this tournament" screen.

15 years agoAdded TODO list from e-mail.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:50:54 +0000 (22:50 +0000)]
Added TODO list from e-mail.

15 years agoPut all the auxilliary screens in a rotate screen.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:26:00 +0000 (22:26 +0000)]
Put all the auxilliary screens in a rotate screen.

15 years agoSplit the bigscreen objects in the Makefile into slightly more manageable groups.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:21:11 +0000 (22:21 +0000)]
Split the bigscreen objects in the Makefile into slightly more manageable groups.

15 years agoActually fetch and display the top 10 scores.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:17:55 +0000 (22:17 +0000)]
Actually fetch and display the top 10 scores.

15 years agoAdd the framework for a top 10 screen.
Steinar H. Gunderson [Mon, 28 Feb 2005 21:05:33 +0000 (21:05 +0000)]
Add the framework for a top 10 screen.

15 years agoAdded a primary key for the "active screens" table.
Steinar H. Gunderson [Mon, 28 Feb 2005 20:23:12 +0000 (20:23 +0000)]
Added a primary key for the "active screens" table.

15 years agoFetch the list of auxilliary screens.
Steinar H. Gunderson [Mon, 28 Feb 2005 20:16:42 +0000 (20:16 +0000)]
Fetch the list of auxilliary screens.

15 years agoAdded a new mini-table for auxilliary bigscreen screens.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:51:18 +0000 (19:51 +0000)]
Added a new mini-table for auxilliary bigscreen screens.

15 years agoWhen editing scores in the web interface, put the web browser approximately back...
Steinar H. Gunderson [Mon, 28 Feb 2005 19:27:54 +0000 (19:27 +0000)]
When editing scores in the web interface, put the web browser approximately back at the group.

15 years agoWrite the machine number (if any) in the header.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:22:32 +0000 (19:22 +0000)]
Write the machine number (if any) in the header.

15 years agoMake the bigscreen application support running groups on multiple machines.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:12:35 +0000 (19:12 +0000)]
Make the bigscreen application support running groups on multiple machines.

15 years agoMake the number of machines settable via the web interface.
Steinar H. Gunderson [Mon, 28 Feb 2005 18:18:27 +0000 (18:18 +0000)]
Make the number of machines settable via the web interface.

15 years ago(no commit message)
Steinar H. Gunderson [Mon, 28 Feb 2005 18:12:46 +0000 (18:12 +0000)]

15 years agoCompile TinyPTC with Xshm.
Steinar H. Gunderson [Mon, 21 Feb 2005 17:49:48 +0000 (17:49 +0000)]
Compile TinyPTC with Xshm.

15 years agoFix two signed/unsigned warnings.
Steinar H. Gunderson [Sun, 20 Feb 2005 23:04:08 +0000 (23:04 +0000)]
Fix two signed/unsigned warnings.
20:00-20:30
22:00-00:00

15 years agoAdjust the fade time back to 0.5 again, after the "starting fade time" fix.
Steinar H. Gunderson [Sun, 20 Feb 2005 22:58:00 +0000 (22:58 +0000)]
Adjust the fade time back to 0.5 again, after the "starting fade time" fix.

15 years agoStart the fade when we can display the first frame of it, not when we know that there...
Steinar H. Gunderson [Sun, 20 Feb 2005 22:52:45 +0000 (22:52 +0000)]
Start the fade when we can display the first frame of it, not when we know that there is a new page. This gets rid of the "kink" we find at the start of a fade if the new screen tok a bit to generate.

15 years agoRead max score for all players in one shot as well, with a new query and an index...
Steinar H. Gunderson [Sun, 20 Feb 2005 22:47:27 +0000 (22:47 +0000)]
Read max score for all players in one shot as well, with a new query and an index which speeds up that query a lot.

15 years agoFetch all the "max score for song" entries in one go instead of one at a time.
Steinar H. Gunderson [Sun, 20 Feb 2005 22:06:56 +0000 (22:06 +0000)]
Fetch all the "max score for song" entries in one go instead of one at a time.

15 years agoClamp number of players shown to nine. Squeeze players a bit more together when we...
Steinar H. Gunderson [Sun, 20 Feb 2005 19:53:20 +0000 (19:53 +0000)]
Clamp number of players shown to nine. Squeeze players a bit more together when we're over seven, to get room for up to nine.

15 years agoDon't use split screen if we only have one screen.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:45:52 +0000 (19:45 +0000)]
Don't use split screen if we only have one screen.

15 years agoRemoved some debugging printf-s, converted some sprintf to std::sprintf.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:09:44 +0000 (19:09 +0000)]
Removed some debugging printf-s, converted some sprintf to std::sprintf.

15 years agoMake "mode" a local variable to the for loop, now that we don't need it anymore.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:07:47 +0000 (19:07 +0000)]
Make "mode" a local variable to the for loop, now that we don't need it anymore.

15 years agoAllow a mix of long and short names in the display of the chosen songs.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:05:49 +0000 (19:05 +0000)]
Allow a mix of long and short names in the display of the chosen songs.

15 years agoCache revision.
Steinar H. Gunderson [Sun, 20 Feb 2005 17:42:52 +0000 (17:42 +0000)]
Cache revision.
18:00-18:45

15 years agoAdjusted the fade times a bit.
Steinar H. Gunderson [Sun, 20 Feb 2005 17:40:28 +0000 (17:40 +0000)]
Adjusted the fade times a bit.

15 years agoFetch the actual high score from the database when showing high score on the group...
Steinar H. Gunderson [Sun, 20 Feb 2005 17:35:24 +0000 (17:35 +0000)]
Fetch the actual high score from the database when showing high score on the group screen.

15 years agoCorrect the logic for finding out what songs a player can choose (only random songs...
Steinar H. Gunderson [Sun, 20 Feb 2005 17:15:53 +0000 (17:15 +0000)]
Correct the logic for finding out what songs a player can choose (only random songs in the same parallel count)

15 years agoDon't show "need to qualify" if it's identical to "need to win"
Steinar H. Gunderson [Sun, 20 Feb 2005 17:05:28 +0000 (17:05 +0000)]
Don't show "need to qualify" if it's identical to "need to win"

15 years agoMoved the bottom text a bit up, to get it more readable.
Steinar H. Gunderson [Sun, 20 Feb 2005 17:04:27 +0000 (17:04 +0000)]
Moved the bottom text a bit up, to get it more readable.

15 years agoAdd a line for "needed to secure qualifiction"/"needed to qualify". SQL cleanups...
Steinar H. Gunderson [Sun, 20 Feb 2005 16:54:37 +0000 (16:54 +0000)]
Add a line for "needed to secure qualifiction"/"needed to qualify". SQL cleanups. Don't show "to lead" line if it's identical to "to win".

15 years agoAdd preliminary "needs to qualify/win" text.
Steinar H. Gunderson [Sun, 20 Feb 2005 16:00:09 +0000 (16:00 +0000)]
Add preliminary "needs to qualify/win" text.
14:00-17:00

15 years agoTry to make the column for the chosen songs as fixed-width as possible.
Steinar H. Gunderson [Sun, 20 Feb 2005 15:29:01 +0000 (15:29 +0000)]
Try to make the column for the chosen songs as fixed-width as possible.

15 years agoFind out which player is playing next (and which song), but don't print it yet.
Steinar H. Gunderson [Sun, 20 Feb 2005 15:22:22 +0000 (15:22 +0000)]
Find out which player is playing next (and which song), but don't print it yet.

15 years agoThe main screen is now a split screen of rotation screens (each with a single group)
Steinar H. Gunderson [Sun, 20 Feb 2005 14:40:35 +0000 (14:40 +0000)]
The main screen is now a split screen of rotation screens (each with a single group)

15 years agoMake the "red stuff is new stuff" fade a lot prettier.
Steinar H. Gunderson [Sun, 20 Feb 2005 14:33:21 +0000 (14:33 +0000)]
Make the "red stuff is new stuff" fade a lot prettier.

15 years agoAdd a better framework for showing what's changed.
Steinar H. Gunderson [Sun, 20 Feb 2005 14:22:11 +0000 (14:22 +0000)]
Add a better framework for showing what's changed.

15 years agoActually check in changes from last time...
Steinar H. Gunderson [Sun, 20 Feb 2005 14:08:10 +0000 (14:08 +0000)]
Actually check in changes from last time...

15 years agoDo the same number of my_draw_text() in all cases, to prepare for the "show differenc...
Steinar H. Gunderson [Sun, 20 Feb 2005 14:07:33 +0000 (14:07 +0000)]
Do the same number of my_draw_text() in all cases, to prepare for the "show differences in red" code.

15 years agoDo some funky channel magic on fading between different versions of the same screen...
Steinar H. Gunderson [Sun, 20 Feb 2005 13:59:08 +0000 (13:59 +0000)]
Do some funky channel magic on fading between different versions of the same screen. This needs a lot more work; it should be done on a lower level, really.

15 years agoChange await_notifications() timeout if something is invalidated (less CPU used when...
Steinar H. Gunderson [Sun, 20 Feb 2005 13:47:06 +0000 (13:47 +0000)]
Change await_notifications() timeout if something is invalidated (less CPU used when there's no action)

15 years agoMake RotateScreen fade between the individual screens.
Steinar H. Gunderson [Sun, 20 Feb 2005 13:42:10 +0000 (13:42 +0000)]
Make RotateScreen fade between the individual screens.

15 years agoCache revision.
Steinar H. Gunderson [Sun, 20 Feb 2005 02:09:44 +0000 (02:09 +0000)]
Cache revision.
18:45-03:15

15 years agoGroupScreen now checks the "last updated" information.
Steinar H. Gunderson [Sun, 20 Feb 2005 02:06:44 +0000 (02:06 +0000)]
GroupScreen now checks the "last updated" information.

15 years agoAdd information to the SQL schema saying when the group was last updated. Make the...
Steinar H. Gunderson [Sun, 20 Feb 2005 01:29:43 +0000 (01:29 +0000)]
Add information to the SQL schema saying when the group was last updated. Make the web interface update that information.

15 years agoAdd a screen rotation class (time multiplexing).
Steinar H. Gunderson [Sun, 20 Feb 2005 01:26:14 +0000 (01:26 +0000)]
Add a screen rotation class (time multiplexing).

15 years agoAdd divider lines for the splitscreen.
Steinar H. Gunderson [Sun, 20 Feb 2005 01:00:17 +0000 (01:00 +0000)]
Add divider lines for the splitscreen.

15 years agoAdded split screen functionality, for showing up to four groups at a time.
Steinar H. Gunderson [Sun, 20 Feb 2005 00:51:39 +0000 (00:51 +0000)]
Added split screen functionality, for showing up to four groups at a time.

15 years agoAdd (a rather sizable chunk of) code for determining the possible best and worst...
Steinar H. Gunderson [Sun, 20 Feb 2005 00:02:09 +0000 (00:02 +0000)]
Add (a rather sizable chunk of) code for determining the possible best and worst ranks for all players.

15 years agoActually show a total for each player.
Steinar H. Gunderson [Sat, 19 Feb 2005 22:49:06 +0000 (22:49 +0000)]
Actually show a total for each player.

15 years agoGo to short names on chosen songs if the text is too wide.
Steinar H. Gunderson [Sat, 19 Feb 2005 22:40:53 +0000 (22:40 +0000)]
Go to short names on chosen songs if the text is too wide.

15 years agoOnly allocate space for four digits in the score screen -- if somebody actually gets...
Steinar H. Gunderson [Sat, 19 Feb 2005 22:31:34 +0000 (22:31 +0000)]
Only allocate space for four digits in the score screen -- if somebody actually gets AAA on Max 300, so be it :-)

15 years agoAdd "total" and "rank" headings, plus clean up the use of width[] somewhat.
Steinar H. Gunderson [Sat, 19 Feb 2005 22:27:30 +0000 (22:27 +0000)]
Add "total" and "rank" headings, plus clean up the use of width[] somewhat.

15 years agoAdded a few more short titles.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:21:13 +0000 (20:21 +0000)]
Added a few more short titles.

15 years agoAdded a short title for www.blonde girl.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:15:56 +0000 (20:15 +0000)]
Added a short title for www.blonde girl.

15 years agoAdd a short title for Never Gonna Make
Steinar H. Gunderson [Sat, 19 Feb 2005 20:15:09 +0000 (20:15 +0000)]
Add a short title for Never Gonna Make

15 years agoAdd a main heading to each group.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:11:20 +0000 (20:11 +0000)]
Add a main heading to each group.

15 years agoUse short titles in the bigscreen headings.
Steinar H. Gunderson [Sat, 19 Feb 2005 20:04:56 +0000 (20:04 +0000)]
Use short titles in the bigscreen headings.

15 years agoAdd some common EM2 song titles.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:31:34 +0000 (19:31 +0000)]
Add some common EM2 song titles.

15 years agoFixed a typo in the SQL for shorttitles.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:26:40 +0000 (19:26 +0000)]
Fixed a typo in the SQL for shorttitles.

15 years agoAdded a provision in the SQL for abbreviated titles.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:24:00 +0000 (19:24 +0000)]
Added a provision in the SQL for abbreviated titles.

15 years agoCenter song headings as well.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:19:34 +0000 (19:19 +0000)]
Center song headings as well.

15 years agoMake my_draw_text() clip horizontally.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:16:03 +0000 (19:16 +0000)]
Make my_draw_text() clip horizontally.

15 years agoMake the score font a lot bigger.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:10:30 +0000 (19:10 +0000)]
Make the score font a lot bigger.

15 years agoClean up the my_draw_text() interface considerably, and let us set sizes per-call.
Steinar H. Gunderson [Sat, 19 Feb 2005 19:06:11 +0000 (19:06 +0000)]
Clean up the my_draw_text() interface considerably, and let us set sizes per-call.

15 years agoShow songs next to each chosen song, and center the appropriate scores. Also, check...
Steinar H. Gunderson [Sat, 19 Feb 2005 18:32:49 +0000 (18:32 +0000)]
Show songs next to each chosen song, and center the appropriate scores. Also, check the maximum number width once, not N times.

15 years agoDon't show column headings for chosen songs, as they are not the same everywhere...
Steinar H. Gunderson [Sat, 19 Feb 2005 18:19:19 +0000 (18:19 +0000)]
Don't show column headings for chosen songs, as they are not the same everywhere, of course.

15 years agoFix some typos in the field names in FetchGroup.
Steinar H. Gunderson [Sat, 19 Feb 2005 18:17:26 +0000 (18:17 +0000)]
Fix some typos in the field names in FetchGroup.

15 years agoAdd column headings and fix widths.
Steinar H. Gunderson [Sat, 19 Feb 2005 18:16:49 +0000 (18:16 +0000)]
Add column headings and fix widths.

15 years agoDon't crash when we have no screens.
Steinar H. Gunderson [Sat, 19 Feb 2005 17:02:19 +0000 (17:02 +0000)]
Don't crash when we have no screens.

15 years agoUse await_notification instead of sleep(), gives us much better response time.
Steinar H. Gunderson [Sat, 19 Feb 2005 17:01:01 +0000 (17:01 +0000)]
Use await_notification instead of sleep(), gives us much better response time.

15 years agoRemove a debugging printf.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:48:31 +0000 (16:48 +0000)]
Remove a debugging printf.
14:30-17:45

15 years agoHandle NULL values in scores better.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:42:37 +0000 (16:42 +0000)]
Handle NULL values in scores better.

15 years agoNOTIFY scores on changing them.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:37:46 +0000 (16:37 +0000)]
NOTIFY scores on changing them.

15 years agoShow the real score instead of 1234.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:37:03 +0000 (16:37 +0000)]
Show the real score instead of 1234.

15 years agoTypofix.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:35:15 +0000 (16:35 +0000)]
Typofix.

15 years agoAdd default constructor for widestring.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:30:58 +0000 (16:30 +0000)]
Add default constructor for widestring.

15 years agoAdd a constructor from const char * for widestring, begin drawing in GroupScreen.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:29:05 +0000 (16:29 +0000)]
Add a constructor from const char * for widestring, begin drawing in GroupScreen.

15 years agoRemove leftover pqxx::work that was causing trouble.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:22:48 +0000 (16:22 +0000)]
Remove leftover pqxx::work that was causing trouble.

15 years agoMake stuff compile again.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:19:50 +0000 (16:19 +0000)]
Make stuff compile again.

15 years agoCommit groupscreen.cpp...
Steinar H. Gunderson [Sat, 19 Feb 2005 16:18:42 +0000 (16:18 +0000)]
Commit groupscreen.cpp...

15 years agoMake screen hierarchy compile.
Steinar H. Gunderson [Sat, 19 Feb 2005 16:18:29 +0000 (16:18 +0000)]
Make screen hierarchy compile.