MCPcopy Create free account
hub / github.com/WallBreaker2/op / OpGetScreenData

Function OpGetScreenData

libop/c_api/op_c_api.cpp:782–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780}
781
782uintptr_t OP_CALL OpGetScreenData(op_handle handle, int x1, int y1, int x2, int y2, int *out_ret) {
783 out_int(out_ret, 0);
784 if (!handle)
785 return 0;
786
787 try {
788 size_t data = 0;
789 long ret = 0;
790 handle->op.GetScreenData(x1, y1, x2, y2, &data, &ret);
791 out_int(out_ret, ret);
792 return static_cast<uintptr_t>(data);
793 } catch (...) {
794 out_int(out_ret, 0);
795 return 0;
796 }
797}
798
799uintptr_t OP_CALL OpGetScreenDataBmp(op_handle handle, int x1, int y1, int x2, int y2, int *size, int *out_ret) {
800 out_int(size, 0);

Callers

nothing calls this directly

Calls 2

out_intFunction · 0.85
GetScreenDataMethod · 0.45

Tested by

no test coverage detected