Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2017-04-02 23:01:18 +0300
committermetalefty <meta@vmeta.jp>2017-06-02 12:14:36 +0300
commit463ad7f64494e8c4e9cba32a4fa31bb7806b708f (patch)
tree04f5673d6172c403619cf5a8f959e826ff4ad6c8 /xrdpdev
parentfe63774f06d1f1015d170eda7f6b4417bf138b4d (diff)
Use uint8_t for pixel calculation
X.org headers include stdint.h, no additional includes are needed.
Diffstat (limited to 'xrdpdev')
-rw-r--r--xrdpdev/xrdpdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xrdpdev/xrdpdev.c b/xrdpdev/xrdpdev.c
index 698bfe2..66e20d5 100644
--- a/xrdpdev/xrdpdev.c
+++ b/xrdpdev/xrdpdev.c
@@ -448,8 +448,8 @@ rdpScreenInit(ScreenPtr pScreen, int argc, char **argv)
dev->bitsPerPixel = rdpBitsPerPixel(dev->depth);
dev->sizeInBytes = dev->paddedWidthInBytes * dev->height;
LLOGLN(0, ("rdpScreenInit: pfbMemory bytes %d", dev->sizeInBytes));
- dev->pfbMemory_alloc = g_new0(char, dev->sizeInBytes + 16);
- dev->pfbMemory = (char *) RDPALIGN(dev->pfbMemory_alloc, 16);
+ dev->pfbMemory_alloc = g_new0(uint8_t, dev->sizeInBytes + 16);
+ dev->pfbMemory = (uint8_t *) RDPALIGN(dev->pfbMemory_alloc, 16);
LLOGLN(0, ("rdpScreenInit: pfbMemory %p", dev->pfbMemory));
if (!fbScreenInit(pScreen, dev->pfbMemory,
pScrn->virtualX, pScrn->virtualY,