sm501: Introduce variable for commonly used value for better readability
commit299778d5af207b298224d2c610324941b8561006
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 20 Jun 2020 20:56:28 +0000 (20 22:56 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Jun 2020 20:46:28 +0000 (30 22:46 +0200)
treef3752e6c330bf8b08326696b5232ebac82694682
parent1cb62e3666b48ac4c6a22340165e21439919908f
sm501: Introduce variable for commonly used value for better readability

The bytes per pixel value can be calculated from format but it's used
freqently enough (and will be used more in subseqent patches) so store
it in a variable for better readabilty. Also drop some unneded 0x
prefix around where new variable is defined.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: b9ea5ef2d68583db9f3fb73a2b859abbd7c044a8.1592686588.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/sm501.c