mirror of
https://github.com/Relintai/rpi-fbcp.git
synced 2024-11-12 20:47:25 +01:00
Add missing include path
This commit is contained in:
parent
5bf24004c1
commit
9689a3b4e2
@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.8)
|
|||||||
SET(COMPILE_DEFINITIONS -Werror)
|
SET(COMPILE_DEFINITIONS -Werror)
|
||||||
|
|
||||||
include_directories(/opt/vc/include)
|
include_directories(/opt/vc/include)
|
||||||
|
include_directories(/opt/vc/include/interface/vcos/pthreads)
|
||||||
|
include_directories(/opt/vc/include/interface/vmcs_host)
|
||||||
|
include_directories(/opt/vc/include/interface/vmcs_host/linux)
|
||||||
|
|
||||||
link_directories(/opt/vc/lib)
|
link_directories(/opt/vc/lib)
|
||||||
|
|
||||||
|
2
main.c
2
main.c
@ -75,7 +75,7 @@ int process() {
|
|||||||
while (1) {
|
while (1) {
|
||||||
ret = vc_dispmanx_snapshot(display, screen_resource, 0);
|
ret = vc_dispmanx_snapshot(display, screen_resource, 0);
|
||||||
vc_dispmanx_resource_read_data(screen_resource, &rect1, fbp, vinfo.xres * vinfo.bits_per_pixel / 8);
|
vc_dispmanx_resource_read_data(screen_resource, &rect1, fbp, vinfo.xres * vinfo.bits_per_pixel / 8);
|
||||||
usleep(50 * 1000);
|
usleep(25 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
munmap(fbp, finfo.smem_len);
|
munmap(fbp, finfo.smem_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user