1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-21 18:53:32 +00:00

1. Fixed compiler warnings

2. Fixed crash that occurs if db is locked
This commit is contained in:
Bryan Roe
2020-04-11 13:06:53 -07:00
parent c4aba77b89
commit 893ec386a6
3 changed files with 14 additions and 9 deletions

View File

@@ -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.