MCPcopy Create free account
hub / github.com/TASEmulators/fceux / gui_check_boundary

Function gui_check_boundary

src/lua-engine.cpp:3552–3554  ·  view source on GitHub ↗

check if a pixel is in the lua canvas

Source from the content-addressed store, hash-verified

3550}
3551// check if a pixel is in the lua canvas
3552static inline bool gui_check_boundary(int x, int y) {
3553 return !(x < 0 || x >= LUA_SCREEN_WIDTH || y < 0 || y >= LUA_SCREEN_HEIGHT);
3554}
3555
3556// write a pixel to gui_data (do not check boundaries for speedup)
3557static inline void gui_drawpixel_fast(int x, int y, uint32 colour) {

Callers 2

gui_drawpixel_internalFunction · 0.85
gui_getpixelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected