aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-03-15 11:30:53 +0200
committerFilippos Karapetis2016-03-15 11:30:53 +0200
commit9b9296069157315d037efc45f900513dffe2d5dc (patch)
tree5e4cfcf58c92c4bb9724d918535658628de6a42b
parent16a7bcb0c35ff0d97b943d941a252df424c0a427 (diff)
downloadscummvm-rg350-9b9296069157315d037efc45f900513dffe2d5dc.tar.gz
scummvm-rg350-9b9296069157315d037efc45f900513dffe2d5dc.tar.bz2
scummvm-rg350-9b9296069157315d037efc45f900513dffe2d5dc.zip
SCI32: Document kAddLine
-rw-r--r--engines/sci/engine/kgraphics32.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp
index 429d3b5673..30cae5d088 100644
--- a/engines/sci/engine/kgraphics32.cpp
+++ b/engines/sci/engine/kgraphics32.cpp
@@ -711,12 +711,12 @@ reg_t kAddLine(EngineState *s, int argc, reg_t *argv) {
reg_t plane = argv[0];
Common::Point startPoint(argv[1].toUint16(), argv[2].toUint16());
Common::Point endPoint(argv[3].toUint16(), argv[4].toUint16());
- // argv[5] is unknown (a number, usually 200)
+ byte priority = (byte)argv[5].toUint16();
byte color = (byte)argv[6].toUint16();
- byte priority = (byte)argv[7].toUint16();
- byte control = (byte)argv[8].toUint16();
- // argv[9] is unknown (usually a small number, 1 or 2). Thickness, perhaps?
-// return g_sci->_gfxFrameout->addPlaneLine(plane, startPoint, endPoint, color, priority, control);
+ byte style = (byte)argv[7].toUint16(); // 0: solid, 1: dashed, 2: pattern
+ byte pattern = (byte)argv[8].toUint16();
+ byte thickness = (byte)argv[9].toUint16();
+// return g_sci->_gfxFrameout->addPlaneLine(plane, startPoint, endPoint, color, priority, 0);
return s->r_acc;
#endif
}