code to actually display the splash screen
This commit is contained in:
		
							parent
							
								
									6538ddeb53
								
							
						
					
					
						commit
						2663de9d42
					
				@ -84,6 +84,9 @@ HRESULT Fb_setup(void)
 | 
				
			|||||||
    return hr;
 | 
					    return hr;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /* display the splash screen */
 | 
				
			||||||
 | 
					  memcpy(Fb_ptr, _binary_splash_bin_start, (size_t)(&_binary_splash_bin_size));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* additional setup here */
 | 
					  /* additional setup here */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return hr;
 | 
					  return hr;
 | 
				
			||||||
@ -100,3 +103,8 @@ void Fb_cleanup(void)
 | 
				
			|||||||
  close(fb_fd);
 | 
					  close(fb_fd);
 | 
				
			||||||
  fb_fd = -1;
 | 
					  fb_fd = -1;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void Fb_clear(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  memset(Fb_Ptr, 0, local_info.screenbytes);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -28,5 +28,6 @@ extern UINT16 *Fb_Ptr;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
extern HRESULT Fb_setup(void);
 | 
					extern HRESULT Fb_setup(void);
 | 
				
			||||||
extern void Fb_cleanup(void);
 | 
					extern void Fb_cleanup(void);
 | 
				
			||||||
 | 
					extern void Fb_clear(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* __FBINIT_H_INCLUDED */
 | 
					#endif /* __FBINIT_H_INCLUDED */
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,6 @@
 | 
				
			|||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					#include <unistd.h>
 | 
				
			||||||
#include "scode.h"
 | 
					#include "scode.h"
 | 
				
			||||||
#include "gpio.h"
 | 
					#include "gpio.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
@ -39,7 +40,10 @@ int main(int argc, char *argv[])
 | 
				
			|||||||
  if (FAILED(Sys_enable_input()))
 | 
					  if (FAILED(Sys_enable_input()))
 | 
				
			||||||
    return EXIT_FAILURE;
 | 
					    return EXIT_FAILURE;
 | 
				
			||||||
  atexit(Sys_disable_input);
 | 
					  atexit(Sys_disable_input);
 | 
				
			||||||
 | 
					  Log(LINFO, "Pausing at startup.");
 | 
				
			||||||
 | 
					  sleep(5); /* wait to show off splash screen */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  Fb_clear();
 | 
				
			||||||
  /* temporary drawing here */
 | 
					  /* temporary drawing here */
 | 
				
			||||||
  do_draw();
 | 
					  do_draw();
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user