equal
deleted
inserted
replaced
95 if((buffer.length() > NVG_VIEWBOX_WIDTH_OFS) && (buffer.length() > NVG_VIEWBOX_HEIGHT_OFS)) { |
95 if((buffer.length() > NVG_VIEWBOX_WIDTH_OFS) && (buffer.length() > NVG_VIEWBOX_HEIGHT_OFS)) { |
96 float lViewboxWidth = * (float*)(lBuf + NVG_VIEWBOX_WIDTH_OFS); |
96 float lViewboxWidth = * (float*)(lBuf + NVG_VIEWBOX_WIDTH_OFS); |
97 float lViewboxHeight = * (float*)(lBuf + NVG_VIEWBOX_HEIGHT_OFS); |
97 float lViewboxHeight = * (float*)(lBuf + NVG_VIEWBOX_HEIGHT_OFS); |
98 |
98 |
99 if (lViewboxWidth > 0 && lViewboxHeight > 0) { |
99 if (lViewboxWidth > 0 && lViewboxHeight > 0) { |
100 ret = QSize(lViewboxWidth, lViewboxHeight); |
100 ret = QSize((int)lViewboxWidth, (int)lViewboxHeight); |
101 } else { |
101 } else { |
102 ret = QSize(0, 0); |
102 ret = QSize(0, 0); |
103 } |
103 } |
104 } |
104 } |
105 return ret; |
105 return ret; |