Log in

View Full Version : SetTargetDC



blackfire553
06-15-2011, 12:41 AM
I always see SetTargetDC(SmartGetDC) in scripts, but i do not understand what it does. I could not find it in the documentation or the google.

Smartzkid
06-15-2011, 01:08 AM
It sets the device context (http://en.wikipedia.org/wiki/Graphics_Device_Interface#Technical_details) that Simba/Scar's graphical functions look at.

blackfire553
06-15-2011, 03:54 AM
When i use this function Simba gives me the error:
[Error] (162:3): Unknown identifier 'SetTargetDC' at line 161

Markus
06-15-2011, 05:22 PM
It's a SCAR only function, Simba got something different for settings targets (check out setupsrl, but I'm not completely sure how it works).