summaryrefslogtreecommitdiffstats
path: root/test/addon-using-own-widget-set
diff options
context:
space:
mode:
authorZhe Sun <31067185+ZheSun88@users.noreply.github.com>2021-04-14 12:02:35 +0300
committerGitHub <noreply@github.com>2021-04-14 12:02:35 +0300
commit7ee99c9a2d6310f1c03e455c1116c29ba3d82f06 (patch)
treec63081e65095c46a4846580a1efddc85869aa829 /test/addon-using-own-widget-set
parente30226a19564c6ee77064e5178a7665554d57466 (diff)
downloadvaadin-framework-7ee99c9a2d6310f1c03e455c1116c29ba3d82f06.tar.gz
vaadin-framework-7ee99c9a2d6310f1c03e455c1116c29ba3d82f06.zip
Update 8.14-SNAPSHOT and release note (#12261)
Diffstat (limited to 'test/addon-using-own-widget-set')
-rw-r--r--test/addon-using-own-widget-set/pom.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/addon-using-own-widget-set/pom.xml b/test/addon-using-own-widget-set/pom.xml
index 64b76cbe5e..3c7a5ebeda 100644
--- a/test/addon-using-own-widget-set/pom.xml
+++ b/test/addon-using-own-widget-set/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-test</artifactId>
- <version>8.13-SNAPSHOT</version>
+ <version>8.14-SNAPSHOT</version>
</parent>
<artifactId>vaadin-test-addon-using-own-widget-set</artifactId>
<packaging>war</packaging>
te.h> using namespace rfb; Encoder::Encoder(SConnection *conn_, int encoding_, enum EncoderFlags flags_, unsigned int maxPaletteSize_) : encoding(encoding_), flags(flags_), maxPaletteSize(maxPaletteSize_), conn(conn_) { } Encoder::~Encoder() { } void Encoder::writeSolidRect(int width, int height, const PixelFormat& pf, const rdr::U8* colour) { ManagedPixelBuffer buffer(pf, width, height); Pixel pixel; Palette palette; rdr::U32 palcol; pixel = pf.pixelFromBuffer(colour); buffer.fillRect(buffer.getRect(), pixel); palcol = 0; memcpy(&palcol, colour, pf.bpp/8); palette.insert(palcol, 1); writeRect(&buffer, palette); } void Encoder::writeSolidRect(const PixelBuffer* pb, const Palette& palette) { rdr::U32 col32; rdr::U16 col16; rdr::U8 col8; rdr::U8* buffer; assert(palette.size() == 1); // The Palette relies on implicit up and down conversion switch (pb->getPF().bpp) { case 32: col32 = (rdr::U32)palette.getColour(0); buffer = (rdr::U8*)&col32; break; case 16: col16 = (rdr::U16)palette.getColour(0); buffer = (rdr::U8*)&col16; break; default: col8 = (rdr::U8)palette.getColour(0); buffer = (rdr::U8*)&col8; break; } writeSolidRect(pb->width(), pb->height(), pb->getPF(), buffer); }