mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +00:00 
			
		
		
		
	Merge a397b6e5c0 into 37675089e3
				
					
				
			This commit is contained in:
		
						commit
						9b33dce1d8
					
				
							
								
								
									
										4
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -4241,6 +4241,10 @@ Clay_RenderCommandArray Clay_EndLayout(void) {
 | 
			
		|||
        } else {
 | 
			
		||||
            message = CLAY_STRING("Clay Error: Layout elements exceeded Clay__maxElementCount");
 | 
			
		||||
        }
 | 
			
		||||
        context->errorHandler.errorHandlerFunction(CLAY__INIT(Clay_ErrorData) {
 | 
			
		||||
                .errorType = CLAY_ERROR_TYPE_ELEMENTS_CAPACITY_EXCEEDED,
 | 
			
		||||
                .errorText = message,
 | 
			
		||||
                .userData = context->errorHandler.userData });
 | 
			
		||||
        Clay__AddRenderCommand(CLAY__INIT(Clay_RenderCommand ) {
 | 
			
		||||
            .boundingBox = { context->layoutDimensions.width / 2 - 59 * 4, context->layoutDimensions.height / 2, 0, 0 },
 | 
			
		||||
            .renderData = { .text = { .stringContents = CLAY__INIT(Clay_StringSlice) { .length = message.length, .chars = message.chars, .baseChars = message.chars }, .textColor = {255, 0, 0, 255}, .fontSize = 16 } },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue