prefix	paint
include	riscos/services.h

task-start	stack=65536
module-init
module-final
command	Desktop_Paint
module-service	dispatch=r1
	on Service_Memory -> paint_service_memory
		inout	r1	claimed		uint32_t
		in	r2	area		uint32_t
	on Service_Reset -> paint_service_reset
	otherwise -> paint_service_ignored

; ColourTrans's transfer function for a brush's table: a palette entry in r0
; and the brush's four-word workspace in r12; the entry to use back in r0.
value-entry	brush_transfunc -> paint_brush_transfer, hidden
