21 lines
552 B
Plaintext
21 lines
552 B
Plaintext
$OpenBSD: patch-src_Element_cpp,v 1.1 2018/04/11 12:16:19 sthen Exp $
|
|
|
|
Index: src/Element.cpp
|
|
--- src/Element.cpp.orig
|
|
+++ src/Element.cpp
|
|
@@ -279,7 +279,13 @@ CBackgroundElement::CBackgroundElement(short initx, sh
|
|
|
|
void CBackgroundElement::OnAllocate()
|
|
{
|
|
- short params[5] = {-1, xs, ys, xe - xs, ye - ys};
|
|
+ short params[5] = {
|
|
+ -1,
|
|
+ static_cast<short>(xs),
|
|
+ static_cast<short>(ys),
|
|
+ static_cast<short>(xe - xs),
|
|
+ static_cast<short>(ye - ys)
|
|
+ };
|
|
unsigned char *tmpBmp;
|
|
|
|
tmpBmp = gShapeManager->GetBackground(params[1], params[2]);
|