]> git.sesse.net Git - pkanalytics/blobdiff - mainwindow.cpp
Do everything through QOpenGLFunctions, in case it loads a weird library.
[pkanalytics] / mainwindow.cpp
index eb82c0256fc3711d4cad86a4855164f7690f5105..bf0ec2bcc80addab23e00ab393feabb49ba0567c 100644 (file)
@@ -1,4 +1,3 @@
-#include <QMediaPlayer>
 #include <QMainWindow>
 #include <QApplication>
 #include <QGridLayout>
@@ -783,10 +782,10 @@ void MainWindow::update_gender_ratio(uint64_t t)
                        EventType type = events->get_event_type(row);
                        if (type == EventType::GOAL || type == EventType::THEIR_GOAL) {
                                historical_gender_counts.push_back(current_gender_count);
-                       } else if (type == EventType::IN) {
+                       } else if (type == EventType::SWAP_IN) {
                                string gender = players->get_player_gender_by_id(*events->get_player_id(row));
                                ++current_gender_count[gender];
-                       } else if (type == EventType::OUT) {
+                       } else if (type == EventType::SWAP_OUT) {
                                string gender = players->get_player_gender_by_id(*events->get_player_id(row));
                                --current_gender_count[gender];
                        }