Skip to content

Commit 03cbbdc

Browse files
committed
Merge branch 'main' into plugins
2 parents 9e5653e + 5cf6c68 commit 03cbbdc

5 files changed

Lines changed: 14 additions & 2 deletions

File tree

include/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class Config : public ConfigBase
6969
std::string data_dir;
7070
std::string sep_reset;
7171
std::string title_sep;
72-
std::string gui_css_file;
7372
std::string gui_bg_image;
73+
std::string gui_css_file;
7474
std::string ascii_logo_type;
7575
std::string logo_position;
7676
std::string offset;

include/pci.ids.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _PCI_IDS_HPP
22
#define _PCI_IDS_HPP
33

4+
/* TODO: delete any subdevices (what the fuck man this REALLY needs a rewrite) */
5+
46
#include "platform.hpp"
57
#if !CF_ANDROID
68

@@ -2674,7 +2676,7 @@ inline std::string get_pci_ids()
26742676
174b d340 Radeon R7 340 OEM
26752677
1b0a 90d3 Radeon R7 240 OEM
26762678
6613 Oland PRO [Radeon R7 240/340 / Radeon 520]
2677-
148c 7340 Radeon R7 340
2679+
XXXX XXXX Radeon R7 340
26782680
1682 7240 R7 240 2048 MB
26792681
1dcf 3000 Oland PRO [Radeon R7 240/340 / Radeon 520]
26802682
6617 Oland LE [Radeon R7 240]

scripts/generate_pci_arrays.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
# pci_table[current_vendor][device_id] = device_name
5656
continue
57+
# TODO: remove all subdevices (useless)
5758
case 2:
5859
# subvendor = line.split(' ')[0]
5960
# subdevice_id = line.split(' ')[1]

src/gui.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
#include "stb_image.h"
4545
#include "util.hpp"
4646

47+
#include "gdkmm/pixbufanimation.h"
48+
#include "glibmm/refptr.h"
49+
#include "gtkmm/cssprovider.h"
50+
#include "glibmm/main.h"
51+
#include "gtkmm/enums.h"
52+
4753
using namespace GUI;
4854

4955
// https://www.codespeedy.com/convert-rgb-to-hex-color-code-in-cpp/

src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <stdlib.h>
2828
#include <termios.h>
2929
#include <unistd.h>
30+
#include <termios.h>
31+
#include <stdlib.h>
3032

3133
#include <algorithm>
3234
#include <cerrno>
@@ -91,6 +93,7 @@ static int kbhit()
9193
{
9294
struct timeval tv = { 0L, 0L };
9395
fd_set fds;
96+
9497
FD_ZERO(&fds);
9598
FD_SET(STDIN_FILENO, &fds);
9699
return select(STDIN_FILENO + 1, &fds, NULL, NULL, &tv) > 0;

0 commit comments

Comments
 (0)