mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-07 11:03:55 +00:00
1. Fixed compiler warnings
2. Fixed crash that occurs if db is locked
This commit is contained in:
@@ -832,7 +832,7 @@ void* kvm_server_mainloop(void* parm)
|
||||
Window rr, cr;
|
||||
int rx, ry, wx, wy, rs;
|
||||
unsigned int mr;
|
||||
char *cursor_image = NULL,*cimage;
|
||||
char *cimage;
|
||||
|
||||
int x, y, height, width, r, c, count = 0;
|
||||
int sentHideCursor = 0;
|
||||
|
||||
@@ -331,11 +331,11 @@ int getTileAt(int x, int y, void** buffer, long long *bufferSize, void *desktop,
|
||||
}
|
||||
|
||||
int retval = 0;
|
||||
int firstTime = 1;
|
||||
|
||||
#if MAX_TILE_SIZE == 0
|
||||
retval = calc_opt_compr_send(x, y, captureWidth, captureHeight, desktop, desktopsize, buffer, bufferSize);
|
||||
#else
|
||||
int firstTime = 1;
|
||||
|
||||
//This loop is used to adjust the COMPRESSION_RATIO. This loop runs only once most of the time.
|
||||
do {
|
||||
//retval here is 0 if everything was good. It is > 0 if it contains the size of the jpeg that was created and not sent.
|
||||
|
||||
Reference in New Issue
Block a user