lua drawing x/y off by 8pixels stuff didnt make sense to me either. lua screen should be 240 (same as nes screen) and if you draw at 0,0 on a standard NTSC setup of y=[8,231] then you wont see anything because youve asked the emulator to cut it off.
This commit is contained in:
parent
36dbc01622
commit
ef2f43449b
|
@ -2758,7 +2758,7 @@ static int movie_isfromsavestate (lua_State *L) {
|
|||
|
||||
|
||||
#define LUA_SCREEN_WIDTH 256
|
||||
#define LUA_SCREEN_HEIGHT 224
|
||||
#define LUA_SCREEN_HEIGHT 240
|
||||
|
||||
// Common code by the gui library: make sure the screen array is ready
|
||||
static void gui_prepare() {
|
||||
|
@ -5210,7 +5210,7 @@ void FCEU_LuaGui(uint8 *XBuf) {
|
|||
b = (((int) gui_blue - scr_blue) * gui_alpha / 255 + scr_blue) & 255;
|
||||
}
|
||||
|
||||
XBuf[(y+8)*256+x] = gui_colour_rgb(r, g, b);
|
||||
XBuf[(y)*256+x] = gui_colour_rgb(r, g, b);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue