Giter Club home page Giter Club logo

ghwikipp's People

Contributors

adenine-dev avatar erquint avatar icculus avatar jpgleeson avatar nhurde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ghwikipp's Issues

links in preview are broken

Preview changes absolute links to links relative to the current page, making it appear as if the contributing page editor has made a mistake, broken the page, and should not submit the edit.

For example, currently when you begin to edit:
https://wiki.libsdl.org/SDL2/CategoryInit
...and preview it without making changes, [SDL_Init] makes a link to...
https://wiki.libsdl.org/SDL2/CategoryInit/SDL_Init
...rather than...
https://wiki.libsdl.org/SDL2/SDL_Init
...as it appears before editing.

I think I find a bug with SDL Library

Hello !

When I use the function SDL_RenderSetLogicalSize() and the Sclale done by this function in X and Y are differents of 1.0f ( in float), the function SDL_SetWindowGrab(pWindow, SDL_TRUE) does not takes this effect, the mouse is not grabbed in the window. When ( in my same program ) the renderer have no set a logical size ( relative to screen format ), the function SDL_SetWindowGrab(pWindow, SDL_TRUE) works perfectly, the mouse is perfectly grabbed.

I try some things for take the mouse grabbed but I d'ont find solution.

It is a bug from thiss functions ?

Thanks for any help...

Arnaud

Bug on the remarks section

I was browsing the SDL2 docs about SDL_RendererInfo and some parts of the Remarks were not rendering correctly (notice the <<Include(...)>> parts). Here's a screenshot displaying the incorrect behavior:
image

The wiki page on SDL_SetWindowMinimumSize is incomplete

The page doesn't list examples of its usage, yet it is incredibly hard to find useful information in other places. Simply using SDL_SetWindowMinimumSize(window, 800, 600); does not work on an X11 Linux Mint 20.1 Ulyssa.

SDL_GetModState doesn't work properly on windows 10

hi,
SDL_GetModState give bad value when the numlock key on numeric pad is on.
It's ok when the num lock is off.
I attach a piece of code below to demonstrate that problem :

#include <SDL2/SDL.h>

#include <stdio.h>


int main(int argc, char **argv){
	
   SDL_Surface *surface = NULL;
   SDL_Renderer *renderer;
   SDL_Event event; 
   SDL_Window * window ;
   uint8_t quit=0;
   
  SDL_Rect rect;
  SDL_Init(SDL_INIT_VIDEO);
 
  window = SDL_CreateWindow("LSHIFT", 100, 100, 640, 480, SDL_WINDOW_SHOWN);
  renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); 
  SDL_SetRenderDrawColor(renderer, 255, 0, 0, 255);
  SDL_RenderClear(renderer);
  SDL_RenderPresent(renderer);
  while (!quit) {
       	SDL_PollEvent(&event); 
	switch(event.type) 
        {			
	    case SDL_QUIT:{
		    break;
	    }
	    case SDL_WINDOWEVENT:{
		    switch (event.window.event)  {
		    case SDL_WINDOWEVENT_CLOSE:  {
			    quit=1;
		    }
		    }//switch event.window.event
		    break;
	    }//switch SDL_WINDOWEVENT 
            case SDL_KEYDOWN: 
	    {
	         if (event.key.keysym.sym==SDLK_KP_PERIOD)
	         {
		    int k = SDL_GetModState();		
		    printf("key %i %i \n" , k & KMOD_LSHIFT , k & KMOD_NUM);
	         }			
	    }	
        }//switch event type
    }//!quit
    SDL_Quit();
 
    return 0;
}//main

the printf result will be : 
0 4096 when left shift is down and num lock on instead of 1 4096
1 0 when num lock is off as expected
Thank for your help

New pages commit as “Updated.”

New pages created through the web interface, generate commits with a message of "Updated" by default. They should probably say "Added."

503 After Authorising Github Email Access

I authorised SDL's Wiki to have user:email scope but get a 503 on the wiki with the following error:

GitHub won't tell us your email address, which we need to make edits to the wiki. Check your settings on GitHub?

This is in spite of the following:
image

For reference my Github account has one primary email and three secondaries. I don't know if this may be a factor.

Do something about categories

These were a big deal on SDL's wiki, but they need some help over here.

Either a script to generate the pages and then hand-edit them, or extend something, I don't know.

No scancode and keycode

There's no keycode and scancode in the SDL_KEYCODE and SDLSCANCODE section . Please fix it as soon as possible .

Needs documentation...

...just looking for a README that explains all the complex things that need to get wired up to use this.

Offline copies...

...we need some way to get these into an offline mode; either cook the HTML standalone and have a .zip file, provide PDFs, I don't know.

Always force reauth with GitHub before posting a change...

...right now you can log out of GitHub but ghwikipp thinks you're still logged in and won't double-check with GitHub. This is okay for just existing, but for things that change state--posting an edit, deleting a page, we really need to check again with GitHub before committing to the operation.

Recook is recooking the category pages every time...

Since the cronjob script is overwriting them but producing the same file when there are no category changes, the wiki then thinks that all these files need recooking since the timestamps changed, but that's not actually the case. Write to a temp file and diff before renaming, or whatever, instead.

Better handling of invalid edits

The fix in #243 is merged, so I'm going to close this, but I'll open an issue in ghwikipp where it'll refuse to accept an edit if pandoc throws an error.

(this particular error was a legacy from our import from MoinMoin, as far as I'm aware, and the preview view will be blank if such an edit were attempted, but that whole thing could be more robust...both in refusing to accept the edit and in the preview showing a "this edit has an error!" message.)

Originally posted by @icculus in libsdl-org/sdlwiki#229 (comment)

Pull request edits should add further edits to the same PR.

The idea:

  • When someone makes an untrusted edit, we make a topic branch (edit-$USERNAME-$TIMESTAMP) commit there and push it and generate a pull request for it.
  • But if they make further edits (fix a typo, add other things), they have to edit the original text again and generate a second PR.
  • We should instead make a single topic branch (edit-$USERNAME-$PAGENAME) if it doesn't already exist, and add more commits to it as they edit futher. As these commits are pushed, they just update the existing PR on GitHub, so you can see the revision history inline, and either rebase (several changes in a row that are unique improvements) or squash it (several typo fixes for the original changes) as appropriate.
  • When merged, the topic branch is deleted, so future edits will make a new PR.
  • When they edit, we start them from the latest in their topic branch instead of the latest in the wiki, so they can edit incrementally without having to redo all their changes to fix an additional typo.

Pages with '.' chars confuse the recooker.

A page like 'SDL1.2Tutorials' will confuse the recooker, probably as it parses out the file extension, so it tries to recook every time, deleting a file named "SDL1.html" which likely confirms the suspicion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.