mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
Fix red playersim build on linux, and make it a bit less hackish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9978 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8325e0bf24
commit
25f386017c
1 changed files with 3 additions and 3 deletions
|
|
@ -21,6 +21,8 @@
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "lcd-playersim.h"
|
#include "lcd-playersim.h"
|
||||||
#include "uisdl.h"
|
#include "uisdl.h"
|
||||||
|
|
@ -28,8 +30,6 @@
|
||||||
|
|
||||||
/* extern functions, needed for screendump() */
|
/* extern functions, needed for screendump() */
|
||||||
extern int sim_creat(const char *name, mode_t mode);
|
extern int sim_creat(const char *name, mode_t mode);
|
||||||
extern ssize_t write(int fd, const void *buf, size_t count);
|
|
||||||
extern int close(int fd);
|
|
||||||
|
|
||||||
SDL_Surface* lcd_surface;
|
SDL_Surface* lcd_surface;
|
||||||
SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0};
|
SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0};
|
||||||
|
|
@ -184,7 +184,7 @@ void screen_dump(void)
|
||||||
create_numbered_filename(filename, "", "dump_", ".bmp", 4);
|
create_numbered_filename(filename, "", "dump_", ".bmp", 4);
|
||||||
DEBUGF("screen_dump\n");
|
DEBUGF("screen_dump\n");
|
||||||
|
|
||||||
fd = sim_creat(filename, 1 /*O_WRONLY*/);
|
fd = sim_creat(filename, O_WRONLY);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue