Modules/UDI - (minor) UDIC sample update
authorJohn Hodge <[email protected]>
Sat, 21 Jun 2014 15:56:47 +0000 (23:56 +0800)
committerJohn Hodge <[email protected]>
Sat, 21 Jun 2014 15:56:47 +0000 (23:56 +0800)
KernelLand/Modules/Interfaces/UDI/trans/gfx.udic

index 48fe9a1..d7364ea 100644 (file)
@@ -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;

UCC git Repository :: git.ucc.asn.au