From: John Hodge Date: Sat, 21 Jun 2014 15:56:47 +0000 (+0800) Subject: Modules/UDI - (minor) UDIC sample update X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ae2d4bb945c417da4f5f0122243f714033f1b822;p=tpg%2Facess2.git Modules/UDI - (minor) UDIC sample update --- diff --git a/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic b/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic index 48fe9a18..d7364eac 100644 --- a/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic +++ b/KernelLand/Modules/Interfaces/UDI/trans/gfx.udic @@ -45,7 +45,13 @@ void usage_ind(udi_usage_cb_t *cb, udi_ubit8_t resource_level) { state_cb->subsystem = i; state_cb->attribute = UDI_GFX_PROP_PIXELFORMAT; - [pixfmt] = udi_gfx_get_engine_req(state_cb); + [pixfmt]:[NAK,status] = udi_gfx_get_engine_req(state_cb); + if(NAK) { + // Shit to do if NAK happens + return ; + } + else { + } // TODO: Annotate udi_gfx_state_cb_t to note values are kept? state_cb->subsystem = i;