Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TMG fade bitmap problem

Featured Replies

Posted

Hi all

i was working on a crack template now and adding the fade bitmaps effect in the dialog. the thing is when i try to modify its width (adding greater than 122h), the template crashes. but when i normalize it to 122h (which was one of TMG's old bitmap's width value), the effect works without problems but the bmp isn't really complete.

                        
                                  xor     ebx,ebx
                                  invoke LoadBitmap,hInstance,201
                                  mov     dword_401EB0, eax
                                  mov     LogoHeight, 7Ah
                                  jmp     short loc_401AFD

                  loc_401AFD:                             ; CODE XREF: sub_4018D3+20Fj
                                  push    [ebp+hDlg]      ; hWnd
                                  call    GetDC
                                  push    eax             ; HDC
                                  mov     [ebp+arg_8], eax
                                  call    CreateCompatibleDC
                                  push    dword_401EB0    ; HGDIOBJ
                                  mov     hDC, eax
                                  push    eax             ; HDC
                                  call    SelectObject
                                  mov     eax, LogoHeight
                                  imul    eax, 366h
                                  mov     edi, 1000h
                                  push    40h             ; flProtect
                                  push    edi             ; flAllocationType
                                  push    eax             ; dwSize
                                  push    ebx             ; lpAddress
                                  mov     LogoWidth, 123h ; <-- here's the problem here...with the f**king width.
                                  call    VirtualAlloc
                                  mov     lpAddress, eax
                                  mov     eax, LogoWidth
                                  imul    eax, LogoHeight
                                  push    40h             ; flProtect
                                  push    edi             ; flAllocationType
                                  lea     eax, [eax+eax*2]
                                  push    eax             ; dwSize
                                  push    ebx             ; lpAddress
                                  call    VirtualAlloc

any suggestions ?

oopsies.zip

Edited by r0ger

imul    eax, 366h

replace with

imul    eax, LogoWidth
lea     eax, [eax+eax*2]

 

  • Author

@kao thanks man , it works now . ^^

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.