]> git.proxmox.com Git - mirror_qemu.git/commit
sm501: Adjust endianness of pixel value in rectangle fill
authorMarcus Comstedt <marcus@mc.pp.se>
Wed, 19 Sep 2018 12:31:14 +0000 (14:31 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 25 Sep 2018 01:12:25 +0000 (11:12 +1000)
commitf3a60058c97f2f923e3883a8b129c7c8dfe46a3a
tree035e8c7da4cbc763fa73b58e14da633646320833
parent0976efd51bbfb28292704a248cb9454fc12f911d
sm501: Adjust endianness of pixel value in rectangle fill

The value from twoD_foreground (which is in host endian format) must
be converted to the endianness of the framebuffer (currently always
little endian) before it can be used to perform the fill operation.

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/display/sm501.c