Author Topic: DIB flicker problem  (Read 12775 times)

kroz

  • Guest
DIB flicker problem
« on: May 30, 2012, 12:26:45 PM »
Hi. I've been doing masm for several months now, and i've just come across DIB.
I read sheep's dib tuts and i tried coding a little demo test. It worked well until I
tried to create a black strip at the bottom by using BitBlt,hWnd,etc,etc,BLACKNESS and the BmpButton function in the masm library.
Then it began to flicker. The only way to stop flickering seems to be to stop BitBlt, and use a normal button, instead of bitmap.
Could anyone please help? thanks :)

dedndave

  • Member
  • *****
  • Posts: 8823
  • Still using Abacus 2.0
    • DednDave
Re: DIB flicker problem
« Reply #1 on: May 30, 2012, 12:50:02 PM »
i am a bitBlt confused   :P

what you show us is a console app - with no source   :redface:
flicker isn't a big problem in console mode
and - we can't see how you are using BitBlt without disassembling your exe

xandaz

  • Member
  • **
  • Posts: 108
  • I luv you babe
Re: DIB flicker problem
« Reply #2 on: May 30, 2012, 11:28:36 PM »
   it's fixed kroz. No redraw window. just InvalidateRect excluding about 40pxls from bottom. Thanks. You're the second person i help this morning. It's kinda going well.
nothing to report.

xandaz

  • Member
  • **
  • Posts: 108
  • I luv you babe
Re: DIB flicker problem
« Reply #3 on: May 30, 2012, 11:30:20 PM »
   also i forgot to mention that you're demo looks pretty good. Later
nothing to report.

dedndave

  • Member
  • *****
  • Posts: 8823
  • Still using Abacus 2.0
    • DednDave
Re: DIB flicker problem
« Reply #4 on: May 31, 2012, 12:11:11 AM »
i don't know what the heck i was looking at   :redface:
i downloaded the zip and unzipped it - then, i must have opened some other folder   :lol:

sorry about that

kroz

  • Guest
Re: DIB flicker problem
« Reply #5 on: May 31, 2012, 11:51:03 AM »
@xandaz : Thanks mate :) fixing it up now...
@dedndave : that's alright ;)

satpro

  • Member
  • **
  • Posts: 116
Re: DIB flicker problem
« Reply #6 on: June 09, 2012, 01:22:01 AM »
kroz (+ zandaz fix),


Nice demo.  Got the tingles thinking about the c-64...

xandaz

  • Member
  • **
  • Posts: 108
  • I luv you babe
Re: DIB flicker problem
« Reply #7 on: August 12, 2012, 04:58:12 AM »
   hi ppl. Been away for a while. Just like to say it feels good to be back.
   Also, i liked a lot what you did with the bitmap font kroz. It's kinda tricky. Nice work.
nothing to report.

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: DIB flicker problem
« Reply #8 on: August 13, 2012, 02:11:41 AM »
@Kroz What did you use to get the image data? is it just hutch's Bin2Dib? or do you have something else?
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: DIB flicker problem
« Reply #9 on: August 13, 2012, 03:40:48 AM »
Never mind Sorry ...I was having a Brain Fart moment   :redface:  ...I saw the images Folder LOL
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: DIB flicker problem
« Reply #10 on: February 08, 2013, 03:21:27 PM »
Hi Kroz
Do you have sheep's dib tuts and attachments
No place on the net has them   :( , he made 3 tuts
Thank you !
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

kroz

  • Guest
Re: DIB flicker problem
« Reply #11 on: February 08, 2013, 07:41:03 PM »
hfheatherfox07 : quite right. It was pretty difficult to get hold of this. I got these tuts thanks to a guy who backed them up on a DVD
                           

*** PLEASE SPREAD THESE !!! ***

enjoy

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: DIB flicker problem
« Reply #12 on: February 08, 2013, 08:13:10 PM »
Thank you so much!!! :biggrin:
This are so hard to come by , actually impossible
Thank you again :biggrin:
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: DIB flicker problem
« Reply #13 on: February 16, 2013, 11:12:19 AM »
@Kroz
What did you use to convert the goldyfont.bmp.palette and goldyfont.bmp.picture to .asm
Bin2dib gives me a different result ?
Edit
What I mean by result is the db numbers inside , it still works !
« Last Edit: February 16, 2013, 01:55:05 PM by hfheatherfox07 »
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

kroz

  • Guest
Re: DIB flicker problem
« Reply #14 on: February 17, 2013, 02:02:27 PM »
Use BMP2RAW http://www.filedropper.com/256bmp2raw
cheerz :) then use Bin2Dib on both .pallete and .picture files