OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
416b5d3
)
Don't cast lvalues, fixes compiler warning.
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Dec 2006 17:24:45 +0000
(17:24 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 21 Dec 2006 17:24:45 +0000
(17:24 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2256
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/tcx.c
patch
|
blob
|
history
diff --git
a/hw/tcx.c
b/hw/tcx.c
index
1df7d24
..
a1a6b68
100644
(file)
--- a/
hw/tcx.c
+++ b/
hw/tcx.c
@@
-88,10
+88,11
@@
static void tcx_draw_line32(TCXState *s1, uint8_t *d,
{
int x;
uint8_t val;
+ uint32_t *p = (uint32_t *)d;
for(x = 0; x < width; x++) {
val = *s++;
- *
((uint32_t *)d)
++ = s1->palette[val];
+ *
p
++ = s1->palette[val];
}
}
@@
-100,10
+101,11
@@
static void tcx_draw_line16(TCXState *s1, uint8_t *d,
{
int x;
uint8_t val;
+ uint16_t *p = (uint16_t *)d;
for(x = 0; x < width; x++) {
val = *s++;
- *
((uint16_t *)d)
++ = s1->palette[val];
+ *
p
++ = s1->palette[val];
}
}