Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
b2cbc4e8
Commit
b2cbc4e8
authored
Feb 06, 2021
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert cython data types
parent
50f0b68b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
_rfb.pyx
blink/screensharing/_rfb.pyx
+4
-4
No files found.
blink/screensharing/_rfb.pyx
View file @
b2cbc4e8
...
...
@@ -24,7 +24,7 @@ cdef extern from "stdarg.h":
cdef extern from "Python.h":
object Py
String
_FromStringAndSize(const char *u, Py_ssize_t size)
object Py
Bytes
_FromStringAndSize(const char *u, Py_ssize_t size)
int PyOS_vsnprintf(char *buf, size_t size, const char *format, va_list va)
...
...
@@ -376,8 +376,8 @@ cdef class RFBClient:
self.parent.imageChanged.emit(x, y, w, h)
cdef void _update_cursor_callback(self, int xhot, int yhot, int width, int height, int bytes_per_pixel):
image = Py
String
_FromStringAndSize(<const char*>self.client.rcSource, width*height*bytes_per_pixel)
mask = Py
String
_FromStringAndSize(<const char*>self.client.rcMask, width*height)
image = Py
Bytes
_FromStringAndSize(<const char*>self.client.rcSource, width*height*bytes_per_pixel)
mask = Py
Bytes
_FromStringAndSize(<const char*>self.client.rcMask, width*height)
#print "-- update cursor shape:", xhot, yhot, width, height, bytes_per_pixel, repr(image), repr(mask)
cdef rfbBool _update_cursor_position_callback(self, int x, int y):
...
...
@@ -401,7 +401,7 @@ cdef class RFBClient:
return credential
cdef void _text_cut_callback(self, const char *text, int length):
cut_text = Py
String
_FromStringAndSize(text, length).decode('latin1')
cut_text = Py
Bytes
_FromStringAndSize(text, length).decode('latin1')
if cut_text:
self.parent.textCut.emit(cut_text)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment