mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Refactor/Create APT/DNF Repository (#1648)
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
# Define the current source locations
|
||||
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
||||
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/qt)
|
||||
|
||||
|
||||
FILE ( GLOB QT_GRAB_SOURCES "${CURRENT_HEADER_DIR}/Qt*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
||||
|
||||
add_library(qt-grabber ${QT_GRAB_SOURCES} )
|
||||
add_library(qt-grabber
|
||||
${CMAKE_SOURCE_DIR}/include/grabber/qt/QtGrabber.h
|
||||
${CMAKE_SOURCE_DIR}/include/grabber/qt/QtWrapper.h
|
||||
${CMAKE_SOURCE_DIR}/libsrc/grabber/qt/QtGrabber.cpp
|
||||
${CMAKE_SOURCE_DIR}/libsrc/grabber/qt/QtWrapper.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(qt-grabber
|
||||
hyperion
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
// proj
|
||||
#include <grabber/QtGrabber.h>
|
||||
#include <grabber/qt/QtGrabber.h>
|
||||
|
||||
// qt
|
||||
#include <QPixmap>
|
||||
@@ -226,7 +226,7 @@ int QtGrabber::grabFrame(Image<ColorRgb>& image)
|
||||
QPixmap originalPixmap = grabWindow(0, _src_x, _src_y, _src_x_max, _src_y_max);
|
||||
#else
|
||||
QPixmap originalPixmap = _screen->grabWindow(0, _src_x, _src_y, _src_x_max, _src_y_max);
|
||||
#endif
|
||||
#endif
|
||||
if (originalPixmap.isNull())
|
||||
{
|
||||
rc = -1;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include <grabber/QtWrapper.h>
|
||||
#include <grabber/qt/QtWrapper.h>
|
||||
|
||||
QtWrapper::QtWrapper( int updateRate_Hz,
|
||||
int display,
|
||||
|
Reference in New Issue
Block a user