Subversion Repositories ps3ware

Compare Revisions

Ignore whitespace Rev 84 → Rev 85

/trunk/libps3fb/libps3fb.c
6,7 → 6,7
* fb.c - FrameBuffer Library
*
* Copyright (c) 2007 John Kelley <ps2dev@kelley.ca>
*
* Copyright (c) 2007 Kristian Jerpetjøn <kristian.jerpetjoen@gmail.com>
* $Id$
*/
 
95,6 → 95,14
return res.yres;
}
 
int ps3fb_getXoff() {
return res.xoff;
}
 
int ps3fb_getYoff() {
return res.yoff;
}
 
void ps3fb_cleanup() {
//enable kernel vsync
ioctl(fb, PS3FB_IOCTL_OFF, 0);
/trunk/libps3fb/libps3fb.h
6,7 → 6,7
* libfb.h - Interface to the FrameBuffer Library
*
* Copyright (c) 2007 John Kelley <ps2dev@kelley.ca>
*
* Copyright (c) 2007 Kristian Jerpetjøn <kristian.jerpetjoen@gmail.com>
* $Id$
*/
 
39,6 → 39,20
int ps3fb_getYres();
 
/**
* Get the horizontal offset of the FrameBuffer
*
* @return int horizontal offset
*/
int ps3fb_getXoff();
 
/**
* Get the vertical offset of the FrameBuffer
*
* @return int vertical offset
*/
int ps3fb_getYoff();
 
/**
* Swap the FrameBuffer immediately
*
* @return address of the BackBuffer