summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/camera.c6
-rw-r--r--examples/example.c2
-rw-r--r--examples/zippy.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/camera.c b/examples/camera.c
index 58ab1c3..51b122d 100644
--- a/examples/camera.c
+++ b/examples/camera.c
@@ -16,7 +16,7 @@
* Christian Daschill
*
*
- * Answer: Originally, I thought about using seperate threads and using a
+ * Answer: Originally, I thought about using separate threads and using a
* mutex to determine when the frame buffer was being accessed by any client
* so we could determine a safe time to take a picture. The probem is, we
* are lock-stepping everything with framebuffer access. Why not be a
@@ -31,7 +31,7 @@
* as the libvncserver should not stall on transmitting to any single
* client.
*
- * Another solution would be to provide a seperate framebuffer for each
+ * Another solution would be to provide a separate framebuffer for each
* client and use mutexes to determine if any particular client is ready for
* a snapshot. This way, your not updating a framebuffer for a slow client
* while it is being transferred.
@@ -104,7 +104,7 @@ int TakePicture(unsigned char *buffer)
*/
gettimeofday(&now,NULL);
line = now.tv_usec / (1000000/HEIGHT);
- if (line>HEIGHT) line=HEIGHT-1;
+ if (line>=HEIGHT) line=HEIGHT-1;
memset(&buffer[(WIDTH * BPP) * line], 0, (WIDTH * BPP));
/* frames per second (informational only) */
diff --git a/examples/example.c b/examples/example.c
index 617e7ad..406378e 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -56,7 +56,7 @@ static void initBuffer(unsigned char* buffer)
}
}
-/* Here we create a structure so that every client has it's own pointer */
+/* Here we create a structure so that every client has its own pointer */
typedef struct ClientData {
rfbBool oldButton;
diff --git a/examples/zippy.c b/examples/zippy.c
index 5a5961a..be06a28 100644
--- a/examples/zippy.c
+++ b/examples/zippy.c
@@ -7,7 +7,7 @@
static int maxx=400, maxy=400, bpp=4;
/* odd maxx doesn't work (vncviewer bug) */
-/* Here we create a structure so that every client has it's own pointer */
+/* Here we create a structure so that every client has its own pointer */
/* turns the framebuffer black */
void blank_framebuffer(char* frame_buffer, int x1, int y1, int x2, int y2);