Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- dmc cursortest.c -o -L/la
- */
- #include <windows.h>
- #include <stdio.h>"Set bitshift left from 64: "); int t; scanf("%d",&t);
- printf("Setting %d*%d cursor",64<<t,64<<t);
- unsigned char* c1=(unsigned char*)calloc(512<<(t*2),1); unsigned char* c2=(unsigned char*)calloc(512<<(t*2),1);
- for(int i=0;i<4096<<(t*2);i++){c1[i>>3]|=((~(cursor[(i&(0x3F<<t))>>t|(i&(0x3F<<(6+t*2)))>>(t*2)]>>1))&1)<<((~i)&0x7);c2[i>>3]|=((cursor[(i&(0x3F<<t))>>t|(i&(0x3F<<(6+t*2)))>>(t*2)]>>0)&1)<<((~i)&0x7);}
- HCURSOR c=CreateCursor(GetModuleHandle(NULL),0,0,64<<t,64<<t,c1,c2);
- SetSystemCursor(c,32512);
- }
Add Comment
Please, Sign In to add comment