Skip to content

Commit

Permalink
[all] update cmake minimum version required
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Nov 9, 2023
1 parent 247c57e commit c13e088
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(purespice LANGUAGES C)
set(CMAKE_C_STANDARD 11)

Expand Down
4 changes: 2 additions & 2 deletions src/channel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ static PS_STATUS onMessage_displayDrawCopy(PSChannel * channel)
{
SpiceBitmap bmp;
readSpiceBitmap(channel->buffer, dst.data.src_bitmap, &bmp);

const bool topDown = bmp.flags & SPICE_BITMAP_FLAGS_TOP_DOWN;
g_ps.config.display.drawBitmap(
dst.base.surface_id,
PS_BITMAP_FMT_RGBA,
bmp.flags & SPICE_BITMAP_FLAGS_TOP_DOWN,
topDown,
dst.base.box.left,
dst.base.box.top,
bmp.x,
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0.0)
cmake_minimum_required(VERSION 3.5)
set(TARGET_NAME "spice-test")
project(${TARGET_NAME})

Expand Down
33 changes: 19 additions & 14 deletions test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ int main(int argc, char * argv[])
{
char * host;
int port = 5900;

#if 0
if (argc < 2)
{
printf("Usage: %s host [port]\n", argv[0]);
Expand All @@ -272,6 +272,9 @@ int main(int argc, char * argv[])
host = argv[1];
if (argc > 2)
port = atoi(argv[2]);
#endif
host = "/opt/PVM/vms/Windows/windows.sock";
port = 0;

int retval = 0;

Expand Down Expand Up @@ -304,31 +307,33 @@ int main(int argc, char * argv[])
.inputs =
{
.enable = true,
.autoConnect = false
.autoConnect = true
},
.clipboard =
{
.enable = false,
.enable = true,
.notice = clipboard_notice,
.data = clipboard_data,
.release = clipboard_release,
.request = clipboard_request
},
.playback =
{
.enable = false,
.start = playback_start,
.volume = playback_volume,
.mute = playback_mute,
.stop = playback_stop,
.data = playback_data
.enable = true,
.autoConnect = true,
.start = playback_start,
.volume = playback_volume,
.mute = playback_mute,
.stop = playback_stop,
.data = playback_data
},
.record = {
.enable = false,
.start = record_start,
.mute = record_mute,
.volume = record_volume,
.stop = record_stop
.enable = true,
.autoConnect = true,
.start = record_start,
.mute = record_mute,
.volume = record_volume,
.stop = record_stop
},
.display = {
.enable = true,
Expand Down

0 comments on commit c13e088

Please sign in to comment.