From ae2d4bb945c417da4f5f0122243f714033f1b822 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 21 Jun 2014 23:56:47 +0800 Subject: [PATCH] Modules/UDI - (minor) UDIC sample update --- KernelLand/Modules/Interfaces/UDI/trans/gfx.udic | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.20.1