PiotrGrochowski

cursor size test

Nov 3rd, 2023
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 8.77 KB | Source Code | 0 0
  1. /*
  2. dmc cursortest.c -o -L/la
  3. */
  4. #include <windows.h>
  5. #include <stdio.h>"Set bitshift left from 64: "); int t; scanf("%d",&t);
  6.  printf("Setting %d*%d cursor",64<<t,64<<t);
  7.  unsigned char* c1=(unsigned char*)calloc(512<<(t*2),1); unsigned char* c2=(unsigned char*)calloc(512<<(t*2),1);
  8.  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);}
  9.  HCURSOR c=CreateCursor(GetModuleHandle(NULL),0,0,64<<t,64<<t,c1,c2);
  10.  SetSystemCursor(c,32512);
  11. }
Add Comment
Please, Sign In to add comment